summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2024-02-22 18:26:40 +0530
committerAmit Kapila <akapila@postgresql.org>2024-02-22 18:26:40 +0530
commitd13ff82319ccaacb04d77b77a010ea7a1717564f (patch)
tree0f9ab952333ca8ff7c7766ced58c3db31ccc7bf6
parentefa70c15c742511195e2ee6f0aef94d0797daf80 (diff)
Fix BF failure in commit 93db6cbda0.
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
-rw-r--r--src/test/recovery/t/040_standby_failover_slots_sync.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/recovery/t/040_standby_failover_slots_sync.pl b/src/test/recovery/t/040_standby_failover_slots_sync.pl
index e24009610ad..968aa7b05bf 100644
--- a/src/test/recovery/t/040_standby_failover_slots_sync.pl
+++ b/src/test/recovery/t/040_standby_failover_slots_sync.pl
@@ -373,7 +373,7 @@ $standby1->append_conf('postgresql.conf', qq(sync_replication_slots = on));
$standby1->reload;
# Confirm that the slot sync worker is able to start.
-$standby1->wait_for_log(qr/LOG: slot sync worker started/,
+$standby1->wait_for_log(qr/slot sync worker started/,
$log_offset);
$log_offset = -s $standby1->logfile;
@@ -384,9 +384,9 @@ $standby1->reload;
# Confirm that slot sync worker acknowledge the GUC change and logs the msg
# about wrong configuration.
-$standby1->wait_for_log(qr/LOG: slot sync worker will restart because of a parameter change/,
+$standby1->wait_for_log(qr/slot sync worker will restart because of a parameter change/,
$log_offset);
-$standby1->wait_for_log(qr/LOG: slot synchronization requires hot_standby_feedback to be enabled/,
+$standby1->wait_for_log(qr/slot synchronization requires hot_standby_feedback to be enabled/,
$log_offset);
$log_offset = -s $standby1->logfile;
@@ -396,7 +396,7 @@ $standby1->append_conf('postgresql.conf', "hot_standby_feedback = on");
$standby1->reload;
# Confirm that the slot sync worker is able to start now.
-$standby1->wait_for_log(qr/LOG: slot sync worker started/,
+$standby1->wait_for_log(qr/slot sync worker started/,
$log_offset);
##################################################