You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow for yet another crash symptom in 013_crash_restart.pl.
Given the right timing, psql could emit "connection to server was lost"
rather than one of the other messages that this test script checked for.
It looks like commit 4247db6 may have made this more likely, but
I don't really believe it was impossible before then. Rather than
stress about it, just add that spelling as one of the crash-successfully-
detected cases.
Discussion: https://postgr.es/m/19344.1548554028@sss.pgh.pa.us
Copy file name to clipboardExpand all lines: src/test/recovery/t/013_crash_restart.pl
+4-4
Original file line number
Diff line number
Diff line change
@@ -115,7 +115,7 @@
115
115
ok( pump_until(
116
116
$killme,
117
117
\$killme_stderr,
118
-
qr/WARNING: terminating connection because of crash of another server process|server closed the connection unexpectedly/m
118
+
qr/WARNING: terminating connection because of crash of another server process|server closed the connection unexpectedly|connection to server was lost/m
119
119
),
120
120
"psql query died successfully after SIGQUIT");
121
121
$killme_stderr = '';
@@ -128,7 +128,7 @@
128
128
ok( pump_until(
129
129
$monitor,
130
130
\$monitor_stderr,
131
-
qr/WARNING: terminating connection because of crash of another server process|server closed the connection unexpectedly/m
131
+
qr/WARNING: terminating connection because of crash of another server process|server closed the connection unexpectedly|connection to server was lost/m
132
132
),
133
133
"psql monitor died successfully after SIGQUIT");
134
134
$monitor->finish;
@@ -197,7 +197,7 @@
197
197
];
198
198
ok( pump_until(
199
199
$killme, \$killme_stderr,
200
-
qr/server closed the connection unexpectedly/m),
200
+
qr/server closed the connection unexpectedly|connection to server was lost/m),
201
201
"psql query died successfully after SIGKILL");
202
202
$killme->finish;
203
203
@@ -207,7 +207,7 @@
207
207
ok( pump_until(
208
208
$monitor,
209
209
\$monitor_stderr,
210
-
qr/WARNING: terminating connection because of crash of another server process|server closed the connection unexpectedly/m
210
+
qr/WARNING: terminating connection because of crash of another server process|server closed the connection unexpectedly|connection to server was lost/m
0 commit comments