Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd6f6f0f

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 commit4247db6 may have made this more likely, butI don't really believe it was impossible before then. Rather thanstress 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 parenta9c35cf commitd6f6f0f

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)

[8]ページ先頭

©2009-2025 Movatter.jp