forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9c9782f
committed
isolationtester: don't repeat the is-it-waiting query when retrying a step.
If we're retrying a step, then we already decided it was blocked on a lock,and there's no need to recheck that. The original coding of commit38f8bdc resulted in a large number ofis-it-waiting queries when dealing with multiple concurrently-blockedsessions, which is fairly pointless and also results in test failures inCLOBBER_CACHE_ALWAYS builds, where the is-it-waiting query is quite slow.This definition also permits appending pg_sleep() calls to steps where it'sneeded to control the order of finish of concurrent steps. Before, thatdid not work nicely because we'd decide that a step performing a sleep wasnot blocked and hang up waiting for it to finish, rather than noticing thecompletion of the concurrent step we're supposed to notice first.In passing, revise handling of removal of completed waiting stepsto make it a bit less messy.1 parenta361490 commit9c9782f
1 file changed
+29
-24
lines changedLines changed: 29 additions & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
540 | 540 |
| |
541 | 541 |
| |
542 | 542 |
| |
543 |
| - | |
544 | 543 |
| |
| 544 | + | |
545 | 545 |
| |
546 | 546 |
| |
547 | 547 |
| |
| |||
563 | 563 |
| |
564 | 564 |
| |
565 | 565 |
| |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
566 | 576 |
| |
567 | 577 |
| |
568 | 578 |
| |
569 | 579 |
| |
570 | 580 |
| |
571 |
| - | |
572 |
| - | |
573 |
| - | |
574 | 581 |
| |
575 |
| - | |
576 |
| - | |
577 |
| - | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
578 | 585 |
| |
579 | 586 |
| |
580 | 587 |
| |
581 | 588 |
| |
582 | 589 |
| |
583 |
| - | |
584 |
| - | |
585 |
| - | |
586 |
| - | |
587 |
| - | |
588 |
| - | |
589 |
| - | |
590 |
| - | |
591 |
| - | |
592 |
| - | |
593 | 590 |
| |
594 | 591 |
| |
595 | 592 |
| |
| |||
621 | 618 |
| |
622 | 619 |
| |
623 | 620 |
| |
624 |
| - | |
| 621 | + | |
625 | 622 |
| |
626 | 623 |
| |
627 | 624 |
| |
| |||
646 | 643 |
| |
647 | 644 |
| |
648 | 645 |
| |
649 |
| - | |
| 646 | + | |
650 | 647 |
| |
651 | 648 |
| |
652 | 649 |
| |
| |||
702 | 699 |
| |
703 | 700 |
| |
704 | 701 |
| |
705 |
| - | |
| 702 | + | |
| 703 | + | |
706 | 704 |
| |
707 |
| - | |
| 705 | + | |
708 | 706 |
| |
709 | 707 |
| |
710 | 708 |
| |
| |||
750 | 748 |
| |
751 | 749 |
| |
752 | 750 |
| |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
753 | 759 |
| |
754 | 760 |
| |
755 | 761 |
| |
| |||
764 | 770 |
| |
765 | 771 |
| |
766 | 772 |
| |
767 |
| - | |
768 |
| - | |
769 |
| - | |
| 773 | + | |
| 774 | + | |
770 | 775 |
| |
771 | 776 |
| |
772 | 777 |
| |
|
0 commit comments
Comments
(0)