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

Commit d13ff82

Browse files
author
Amit Kapila
committed
Fix BF failure in commit 93db6cb.
The code to match the required LOG in the test was not robust enough to match it. It was using a very specific format to search the required message which doesn't work when one uses log_error_verbosity = verbose. Author: Hou Zhijie Discussion: https://postgr.es/m/CAA4eK1KcQSk7wzC7Zfrth9OhrjW2HvxL4tKgU42qqH7p6jn+FA@mail.gmail.com
1 parent efa70c1 commit d13ff82

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/recovery/t/040_standby_failover_slots_sync.pl

+4-4
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@
373373
$standby1->reload;
374374

375375
# Confirm that the slot sync worker is able to start.
376-
$standby1->wait_for_log(qr/LOG: slot sync worker started/,
376+
$standby1->wait_for_log(qr/slot sync worker started/,
377377
$log_offset);
378378

379379
$log_offset = -s $standby1->logfile;
@@ -384,9 +384,9 @@
384384

385385
# Confirm that slot sync worker acknowledge the GUC change and logs the msg
386386
# about wrong configuration.
387-
$standby1->wait_for_log(qr/LOG: slot sync worker will restart because of a parameter change/,
387+
$standby1->wait_for_log(qr/slot sync worker will restart because of a parameter change/,
388388
$log_offset);
389-
$standby1->wait_for_log(qr/LOG: slot synchronization requires hot_standby_feedback to be enabled/,
389+
$standby1->wait_for_log(qr/slot synchronization requires hot_standby_feedback to be enabled/,
390390
$log_offset);
391391

392392
$log_offset = -s $standby1->logfile;
@@ -396,7 +396,7 @@
396396
$standby1->reload;
397397

398398
# Confirm that the slot sync worker is able to start now.
399-
$standby1->wait_for_log(qr/LOG: slot sync worker started/,
399+
$standby1->wait_for_log(qr/slot sync worker started/,
400400
$log_offset);
401401

402402
##################################################

0 commit comments

Comments
 (0)