forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcf680bd
committed
Tighten TAP tests' tracking of postmaster state some more.
Commits6c4a890 et al. had a couple of deficiencies:* The logic I added to Cluster::start to see if a PID file is presentcould be fooled by a stale PID file left over from a previouspostmaster. To fix, if we're not sure whether we expect to find arunning postmaster or not, validate the PID using "kill 0".* 017_shm.pl has a loop in which it just issues repeated Cluster::startcalls; this will fail if some invocation fails but leaves self->_pidset. Per buildfarm results, the above fix is not enough to make thissafe: we might have "validated" a PID for a postmaster that exitsimmediately after we look. Hence, match each failed start call witha stop call that will get us back to the self->_pid == undef state.Add a fail_ok option to Cluster::stop to make this work.Discussion:https://postgr.es/m/CA+hUKGKV6fOHvfiPt8=dOKzvswjAyLoFoJF1iQXMNpi7+hD1JQ@mail.gmail.com1 parent156a846 commitcf680bd
2 files changed
+37
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
863 | 863 | | |
864 | 864 | | |
865 | 865 | | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
866 | 869 | | |
867 | 870 | | |
868 | 871 | | |
869 | 872 | | |
870 | | - | |
871 | | - | |
| 873 | + | |
872 | 874 | | |
873 | 875 | | |
| 876 | + | |
874 | 877 | | |
875 | 878 | | |
876 | 879 | | |
877 | 880 | | |
878 | | - | |
| 881 | + | |
| 882 | + | |
879 | 883 | | |
880 | | - | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
881 | 898 | | |
882 | | - | |
| 899 | + | |
883 | 900 | | |
884 | 901 | | |
885 | 902 | | |
| |||
1107 | 1124 | | |
1108 | 1125 | | |
1109 | 1126 | | |
1110 | | - | |
1111 | 1127 | | |
1112 | 1128 | | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
1113 | 1141 | | |
1114 | 1142 | | |
1115 | 1143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
210 | 213 | | |
211 | 214 | | |
212 | 215 | | |
| |||
0 commit comments
Comments
(0)