forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1273a15
committed
Disable cache clobber to avoid breaking postgres_fdw termination test.
Commit93f4146 improved a pre-existing test case so that it wouldshow whether or not termination of the "remote" worker process happened.This soon exposed that, when debug_invalidate_system_caches_always(nee CLOBBER_CACHE_ALWAYS) is enabled, no such termination occurs.That's because cache invalidation forces postgres_fdw connectionsto be dropped at end of transaction, so that there's no worker toterminate. There's a race condition as to whether the worker willmanage to get out of the BackendStatusArray before we look, but atleast on buildfarm member hyrax, it's failed twice in two attempts.Rather than re-lobotomizing the test, let's fix this by transientlydisabling debug_invalidate_system_caches_always. (Hooray for thatbeing just a GUC nowadays, rather than a compile-time option.)If this proves not to be enough to make the test stable, we cando the other thing instead.Discussion:https://postgr.es/m/3854538.1620081771@sss.pgh.pa.us1 parente798d09 commit1273a15
File tree
2 files changed
+23
-6
lines changed- contrib/postgres_fdw
- expected
- sql
2 files changed
+23
-6
lines changedLines changed: 10 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9204 | 9204 |
| |
9205 | 9205 |
| |
9206 | 9206 |
| |
| 9207 | + | |
| 9208 | + | |
| 9209 | + | |
| 9210 | + | |
| 9211 | + | |
| 9212 | + | |
9207 | 9213 |
| |
9208 | 9214 |
| |
9209 | 9215 |
| |
| |||
9227 | 9233 |
| |
9228 | 9234 |
| |
9229 | 9235 |
| |
9230 |
| - | |
9231 |
| - | |
9232 |
| - | |
| 9236 | + | |
| 9237 | + | |
9233 | 9238 |
| |
9234 | 9239 |
| |
9235 | 9240 |
| |
| |||
9239 | 9244 |
| |
9240 | 9245 |
| |
9241 | 9246 |
| |
| 9247 | + | |
9242 | 9248 |
| |
9243 | 9249 |
| |
9244 | 9250 |
| |
9245 | 9251 |
| |
9246 | 9252 |
| |
| 9253 | + | |
9247 | 9254 |
| |
9248 | 9255 |
| |
9249 | 9256 |
| |
|
Lines changed: 13 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2795 | 2795 |
| |
2796 | 2796 |
| |
2797 | 2797 |
| |
| 2798 | + | |
| 2799 | + | |
| 2800 | + | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
2798 | 2806 |
| |
2799 | 2807 |
| |
2800 | 2808 |
| |
| |||
2806 | 2814 |
| |
2807 | 2815 |
| |
2808 | 2816 |
| |
2809 |
| - | |
2810 |
| - | |
2811 |
| - | |
| 2817 | + | |
| 2818 | + | |
2812 | 2819 |
| |
2813 | 2820 |
| |
2814 | 2821 |
| |
2815 | 2822 |
| |
| 2823 | + | |
2816 | 2824 |
| |
2817 | 2825 |
| |
2818 | 2826 |
| |
2819 | 2827 |
| |
2820 | 2828 |
| |
| 2829 | + | |
| 2830 | + | |
2821 | 2831 |
| |
2822 | 2832 |
| |
2823 | 2833 |
| |
|
0 commit comments
Comments
(0)