Content-Length: 309133 | pFad | http://github.com/postgrespro/postgres_cluster/commit/04bbefcc30f0f41066607da319dea58e3a319433

F2 Allow for yet another crash symptom in 013_crash_restart.pl. · postgrespro/postgres_cluster@04bbefc · GitHub
Skip to content

Commit 04bbefc

Browse files
committed
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
1 parent 2c50c9f commit 04bbefc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/recovery/t/013_crash_restart.pl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
ok( pump_until(
116116
$killme,
117117
\$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
119119
),
120120
"psql query died successfully after SIGQUIT");
121121
$killme_stderr = '';
@@ -128,7 +128,7 @@
128128
ok( pump_until(
129129
$monitor,
130130
\$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
132132
),
133133
"psql monitor died successfully after SIGQUIT");
134134
$monitor->finish;
@@ -197,7 +197,7 @@
197197
];
198198
ok( pump_until(
199199
$killme, \$killme_stderr,
200-
qr/server closed the connection unexpectedly/m),
200+
qr/server closed the connection unexpectedly|connection to server was lost/m),
201201
"psql query died successfully after SIGKILL");
202202
$killme->finish;
203203

@@ -207,7 +207,7 @@
207207
ok( pump_until(
208208
$monitor,
209209
\$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
211211
),
212212
"psql monitor died successfully after SIGKILL");
213213
$monitor->finish;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/04bbefcc30f0f41066607da319dea58e3a319433

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy