Skip to content

Commit 1e6e404

Browse files
committed
Fix recovery test hang in 021_row_visibility.pl on windows.
The psql processes were not explicitly killed (but would eventually exit due postgres shutting down). For some reason windows perl doesn't like that, resulting in errors like Warning: unable to close filehandle GEN20 properly: Bad file descriptor during global destruction. The test was introduced in d6734a897e3, so no backpatching necessary.
1 parent f5a5773 commit 1e6e404

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/recovery/t/021_row_visibility.pl

+4
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@
151151
qr/will_commit.*\n\(1 row\)$/m),
152152
'finished prepared visible');
153153

154+
# explicitly shut down psql instances - they cause hangs on windows
155+
$psql_primary{run}->kill_kill;
156+
$psql_standby{run}->kill_kill;
157+
154158
$node_primary->stop;
155159
$node_standby->stop;
156160

0 commit comments

Comments
 (0)