Skip to content

Commit d9e225f

Browse files
author
Amit Kapila
committed
Change the LOG level in 040_standby_failover_slots_sync.pl to DEBUG2.
Temporarily change the log level of 040_standby_failover_slots_sync.pl to DEBUG2. This is to get more information about BF failures. We will reset it back to default once the tests are stabilized. Author: Hou Zhijie Reviewed-by: Amit Kapila Discussion: https://postgr.es/m/514f6f2f-6833-4539-39f1-96cd1e011f23@enterprisedb.com Discussion: https://postgr.es/m/OS0PR01MB571633C23B2A4CAC5FB0371A944C2@OS0PR01MB5716.jpnprd01.prod.outlook.com
1 parent 7a424ec commit d9e225f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,20 @@
130130
has_streaming => 1,
131131
has_restoring => 1);
132132

133+
# Increase the log_min_messages setting to DEBUG2 on both the standby and
134+
# primary to debug test failures, if any.
133135
my $connstr_1 = $primary->connstr;
134136
$standby1->append_conf(
135137
'postgresql.conf', qq(
136138
hot_standby_feedback = on
137139
primary_slot_name = 'sb1_slot'
138140
primary_conninfo = '$connstr_1 dbname=postgres'
141+
log_min_messages = 'debug2'
139142
));
140143

144+
$primary->append_conf('postgresql.conf', "log_min_messages = 'debug2'");
145+
$primary->reload;
146+
141147
$primary->psql('postgres',
142148
q{SELECT pg_create_logical_replication_slot('lsub2_slot', 'test_decoding', false, false, true);}
143149
);
@@ -265,6 +271,13 @@
265271
"t",
266272
'logical slot is re-synced');
267273

274+
# Reset the log_min_messages to the default value.
275+
$primary->append_conf('postgresql.conf', "log_min_messages = 'warning'");
276+
$primary->reload;
277+
278+
$standby1->append_conf('postgresql.conf', "log_min_messages = 'warning'");
279+
$standby1->reload;
280+
268281
##################################################
269282
# Test that a synchronized slot can not be decoded, altered or dropped by the
270283
# user

0 commit comments

Comments
 (0)