forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commiteda4ef8
committed
stats regression test's wait_for_stats() must check timestamp too.
pg_stat_get_snapshot_timestamp() returns the timestamp seen in the "global"stats file. Because pgstat_write_statsfiles() writes per-DB stats filesbefore the global file (or at least before renaming it into place), thereis a window where the test backend can see all the stats updates thatwait_for_stats() was checking for (all of which come from the per-DB file)but also see the same global stats file it had seen at the start of thetest script. This results in a failure in only the "snapshot_newer" query,as reported by a couple of buildfarm members recently.I suspect that this ought to be back-patched. Commit4e37b3e hasevidently increased the probability of this window getting hit, butit's not apparent why it could not have been hit before. I'll refrainfor the moment though.1 parentde7cca9 commiteda4ef8
2 files changed
+16
-2
lines changedLines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
| 35 | + | |
35 | 36 |
| |
36 | 37 |
| |
37 | 38 |
| |
| |||
55 | 56 |
| |
56 | 57 |
| |
57 | 58 |
| |
58 |
| - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
59 | 66 |
| |
60 | 67 |
| |
61 | 68 |
| |
|
Lines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| 34 | + | |
34 | 35 |
| |
35 | 36 |
| |
36 | 37 |
| |
| |||
54 | 55 |
| |
55 | 56 |
| |
56 | 57 |
| |
57 |
| - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
58 | 65 |
| |
59 | 66 |
| |
60 | 67 |
| |
|
0 commit comments
Comments
(0)