- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit4464fdd
committed
Improve runtime and output of tests for replication slots checkpointing.
The TAP tests that verify logical and physical replication slot behaviorduring checkpoints (046_checkpoint_logical_slot.pl and047_checkpoint_physical_slot.pl) inserted two batches of 2 million rows each,generating approximately 520 MB of WAL. On slow machines, or when compiledwith '-DRELCACHE_FORCE_RELEASE -DCATCACHE_FORCE_RELEASE', this caused thetests to run for 8-9 minutes and occasionally time out, as seen on thebuildfarm animal prion.This commit modifies the mentioned tests to utilize the $node->advance_wal()function, thereby reducing runtime. Once we do not use the generated data,the proposed function is a good alternative, which cuts the total wall-clockrun time.While here, remove superfluous '\n' characters from several note() calls;these appeared literally in the build-farm logs and looked odd. Also, removeexcessive 'shared_preload_libraries' GUC from the config and add a check for'injection_points' extension availability.Reported-by: Alexander Lakhin <exclusion@gmail.com>Reported-by: Tom Lane <tgl@sss.pgh.pa.us>Author: Alexander Korotkov <aekorotkov@gmail.com>Author: Vitaly Davydov <v.davydov@postgrespro.ru>Reviewed-by: Hayato Kuroda <kuroda.hayato@fujitsu.com>Discussion:https://postgr.es/m/fbc5d94e-6fbd-4a64-85d4-c9e284a58eb2%40gmail.comBackpatch-through: 171 parenta8360f0 commit4464fdd
File tree
2 files changed
+25
-29
lines changed- src/test/recovery/t
2 files changed
+25
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | 24 | | |
27 | 25 | | |
28 | | - | |
29 | 26 | | |
30 | | - | |
31 | | - | |
32 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 69 | + | |
73 | 70 | | |
74 | 71 | | |
75 | 72 | | |
76 | 73 | | |
77 | | - | |
| 74 | + | |
78 | 75 | | |
79 | 76 | | |
80 | 77 | | |
| |||
88 | 85 | | |
89 | 86 | | |
90 | 87 | | |
91 | | - | |
| 88 | + | |
92 | 89 | | |
93 | 90 | | |
94 | 91 | | |
| |||
107 | 104 | | |
108 | 105 | | |
109 | 106 | | |
110 | | - | |
| 107 | + | |
111 | 108 | | |
112 | 109 | | |
113 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | 24 | | |
27 | 25 | | |
28 | | - | |
29 | 26 | | |
30 | | - | |
31 | | - | |
32 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
47 | | - | |
48 | | - | |
49 | | - | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
61 | | - | |
62 | | - | |
| 61 | + | |
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
| |||
0 commit comments
Comments
(0)