From 6ca984b63d7d2296b2082495536945adb6d4b083 Mon Sep 17 00:00:00 2001 From: Grigory Smolkin Date: Fri, 11 Oct 2019 19:03:55 +0300 Subject: [PATCH] tests: fix for "replica" module --- tests/replica.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/replica.py b/tests/replica.py index f357c5ac..b368b93e 100644 --- a/tests/replica.py +++ b/tests/replica.py @@ -743,6 +743,10 @@ class ReplicaTest(ProbackupTest, unittest.TestCase): self.set_replica(master, replica, synchronous=True) self.set_archiving(backup_dir, 'replica', replica, replica=True) + # freeze bgwriter to get rid of RUNNING XACTS records + bgwriter_pid = master.auxiliary_pids[ProcessType.BackgroundWriter][0] + gdb_checkpointer = self.gdb_attach(bgwriter_pid) + copy_tree( os.path.join(backup_dir, 'wal', 'master'), os.path.join(backup_dir, 'wal', 'replica')) @@ -757,7 +761,7 @@ class ReplicaTest(ProbackupTest, unittest.TestCase): backup_dir, 'replica', replica, options=[ '--archive-timeout=30', - '--log-level-console=verbose', + '--log-level-console=LOG', '--no-validate'], return_id=False)