forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit97fb88e
committed
Fix isolationtester race condition for notices sent before blocking.
If a test sends a notice just before blocking, it's possible onslow machines for isolationtester to detect the blocked state beforeit's consumed the notice. (For this to happen, the notice would haveto arrive after isolationtester has waited for data for 10ms, so onfast/lightly-loaded machines it's hard to reproduce the failure.)But, if we have seen the backend as blocked, it's certainly alreadysent any notices it's going to send. Therefore, one more round ofPQconsumeInput and PQisBusy should be enough to collect and processany such notices.Back-patch of3071763 into v12. We're still discussing whetherto back-patch this further and/or back-patch some other recentisolationtester fixes, but this much is provably necessary tomake the test cases added by27cc7cd stable in v12.Discussion:https://postgr.es/m/14616.1564251339@sss.pgh.pa.usDiscussion:https://postgr.es/m/E1i7IqC-0000Uc-5H@gemulon.postgresql.org1 parent84bb33c commit97fb88e
1 file changed
+22
-0
lines changedLines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
764 | 764 |
| |
765 | 765 |
| |
766 | 766 |
| |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
767 | 789 |
| |
768 | 790 |
| |
769 | 791 |
| |
|
0 commit comments
Comments
(0)