Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7a43a1f

Browse files
committed
Update some tests in 013_crash_restart.pl.
The expected backend message after SIGQUIT changed in commit 7e784d1, but we missed updating this test case. Also, experience shows that we might sometimes get "could not send data to server" instead of either of the libpq messages the test is looking for. Per report from Mark Dilger. Back-patch to v14 where the backend message changed. Discussion: https://postgr.es/m/17BD82D7-49AC-40C9-8204-E7ADD30321A0@enterprisedb.com
1 parent 909eebf commit 7a43a1f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
$killme,
111111
$psql_timeout,
112112
\$killme_stderr,
113-
qr/WARNING: terminating connection because of crash of another server process|server closed the connection unexpectedly|connection to server was lost/m
113+
qr/WARNING: terminating connection because of unexpected SIGQUIT signal|server closed the connection unexpectedly|connection to server was lost|could not send data to server/m
114114
),
115115
"psql query died successfully after SIGQUIT");
116116
$killme_stderr = '';
@@ -124,7 +124,7 @@
124124
$monitor,
125125
$psql_timeout,
126126
\$monitor_stderr,
127-
qr/WARNING: terminating connection because of crash of another server process|server closed the connection unexpectedly|connection to server was lost/m
127+
qr/WARNING: terminating connection because of crash of another server process|server closed the connection unexpectedly|connection to server was lost|could not send data to server/m
128128
),
129129
"psql monitor died successfully after SIGQUIT");
130130
$monitor->finish;
@@ -190,7 +190,7 @@
190190
$killme,
191191
$psql_timeout,
192192
\$killme_stderr,
193-
qr/server closed the connection unexpectedly|connection to server was lost/m
193+
qr/server closed the connection unexpectedly|connection to server was lost|could not send data to server/m
194194
),
195195
"psql query died successfully after SIGKILL");
196196
$killme->finish;
@@ -202,7 +202,7 @@
202202
$monitor,
203203
$psql_timeout,
204204
\$monitor_stderr,
205-
qr/WARNING: terminating connection because of crash of another server process|server closed the connection unexpectedly|connection to server was lost/m
205+
qr/WARNING: terminating connection because of crash of another server process|server closed the connection unexpectedly|connection to server was lost|could not send data to server/m
206206
),
207207
"psql monitor died successfully after SIGKILL");
208208
$monitor->finish;

0 commit comments

Comments
 (0)