- Notifications
You must be signed in to change notification settings - Fork5
Commit7d68f22
committed
Make PostgresNode.pm check server status more carefully.
PostgresNode blithely ignored the exit status of pg_ctl, and in generalmade no effort to be sure that the server was running when it should be.This caused it to miss server crashes, which is a serious shortcomingin a test scaffold. Make it complain if pg_ctl fails, and modify thestart and stop logic to complain if the server doesn't start, or doesn'tstop, when expected.Also, have it turn off the "restart_after_crash" configuration parameterin created clusters, as bitter experience has shown that leaving that oncan mask crashes too.We might at some point need variant functions that allow for, eg,server start failure to be expected. But no existing test case appearsto want that, and it surely shouldn't be the default behavior.Note that this *will* break the buildfarm, as it will expose knownbugs that the previous testing failed to. I'm committing it despitethat, to verify that we get the expected failures in the buildfarmnot just in manual testing.Back-patch into 9.6 where PostgresNode was introduced. (The 9.6branch is not expected to show any failures.)Discussion:https://postgr.es/m/21432.1492886428@sss.pgh.pa.us1 parent8a19c1a commit7d68f22
1 file changed
+25
-16
lines changedLines changed: 25 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
402 | 402 |
| |
403 | 403 |
| |
404 | 404 |
| |
| 405 | + | |
405 | 406 |
| |
406 | 407 |
| |
407 | 408 |
| |
| |||
644 | 645 |
| |
645 | 646 |
| |
646 | 647 |
| |
| 648 | + | |
647 | 649 |
| |
648 | 650 |
| |
649 | 651 |
| |
650 | 652 |
| |
651 | 653 |
| |
652 | 654 |
| |
653 |
| - | |
| 655 | + | |
654 | 656 |
| |
655 |
| - | |
| 657 | + | |
656 | 658 |
| |
657 | 659 |
| |
658 |
| - | |
| 660 | + | |
659 | 661 |
| |
660 | 662 |
| |
661 | 663 |
| |
| |||
664 | 666 |
| |
665 | 667 |
| |
666 | 668 |
| |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
667 | 673 |
| |
668 | 674 |
| |
669 | 675 |
| |
| |||
675 | 681 |
| |
676 | 682 |
| |
677 | 683 |
| |
678 |
| - | |
679 |
| - | |
680 |
| - | |
| 684 | + | |
| 685 | + | |
681 | 686 |
| |
682 | 687 |
| |
683 | 688 |
| |
| |||
695 | 700 |
| |
696 | 701 |
| |
697 | 702 |
| |
698 |
| - | |
| 703 | + | |
699 | 704 |
| |
700 | 705 |
| |
701 | 706 |
| |
| |||
714 | 719 |
| |
715 | 720 |
| |
716 | 721 |
| |
717 |
| - | |
718 |
| - | |
719 |
| - | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
720 | 725 |
| |
721 | 726 |
| |
722 | 727 |
| |
| |||
735 | 740 |
| |
736 | 741 |
| |
737 | 742 |
| |
738 |
| - | |
739 |
| - | |
| 743 | + | |
| 744 | + | |
740 | 745 |
| |
741 | 746 |
| |
742 | 747 |
| |
| |||
814 | 819 |
| |
815 | 820 |
| |
816 | 821 |
| |
817 |
| - | |
| 822 | + | |
818 | 823 |
| |
819 | 824 |
| |
820 | 825 |
| |
821 |
| - | |
822 |
| - | |
| 826 | + | |
823 | 827 |
| |
824 | 828 |
| |
825 | 829 |
| |
826 | 830 |
| |
827 | 831 |
| |
| 832 | + | |
| 833 | + | |
| 834 | + | |
828 | 835 |
| |
829 | 836 |
| |
830 | 837 |
| |
831 | 838 |
| |
832 |
| - | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
833 | 842 |
| |
834 | 843 |
| |
835 | 844 |
| |
|
0 commit comments
Comments
(0)