forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit885826f
committed
Fix race condition in stats.sql added in5264add
Very occasionally the stats test failed due to the number of sessions notbeing updated yet. Likely this requires that there is contention on thedatabase's stats entry. Solve this by forcing pending stats to be flushedbefore fetching the stats.I verified that there are no other test failures after makingpgstat_report_stat() only flush stats when force = true.Per message from Tom Lane and buildfarm member crake.Discussion:https://postgr.es/m/3428246.1663271992@sss.pgh.pa.usBackpatch: 15-, where5264add added the test1 parentb759bb6 commit885826f
2 files changed
+7
-0
lines changedLines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
560 | 560 |
| |
561 | 561 |
| |
562 | 562 |
| |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
563 | 569 |
| |
564 | 570 |
| |
565 | 571 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
294 | 294 |
| |
295 | 295 |
| |
296 | 296 |
| |
| 297 | + | |
297 | 298 |
| |
298 | 299 |
| |
299 | 300 |
| |
|
0 commit comments
Comments
(0)