From 597aa037cc72282e74b5b7591a99490a6166fe65 Mon Sep 17 00:00:00 2001 From: ranshid <88133677+ranshid@users.noreply.github.com> Date: Mon, 14 Oct 2024 10:30:29 +0300 Subject: [PATCH] Deflake test Primary COB growth with inactive replica (#1165) in case of valgrind run, the replica might get disconnected from the primary due to repl-timeout reached. Fix is to configure larger timeout in case of valgrind test. **Partially** fixes: #1152 Signed-off-by: Ran Shidlansik --- tests/integration/dual-channel-replication.tcl | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/integration/dual-channel-replication.tcl b/tests/integration/dual-channel-replication.tcl index f8c9eae44..b1aab1c23 100644 --- a/tests/integration/dual-channel-replication.tcl +++ b/tests/integration/dual-channel-replication.tcl @@ -500,7 +500,11 @@ start_server {tags {"dual-channel-replication external:skip"}} { $primary config set dual-channel-replication-enabled yes $primary config set repl-backlog-size $backlog_size $primary config set loglevel debug - $primary config set repl-timeout 10 + if {$::valgrind} { + $primary config set repl-timeout 100 + } else { + $primary config set repl-timeout 10 + } $primary config set rdb-key-save-delay 200 populate 10000 primary 10000 @@ -510,7 +514,11 @@ start_server {tags {"dual-channel-replication external:skip"}} { $replica config set dual-channel-replication-enabled yes $replica config set loglevel debug - $replica config set repl-timeout 10 + if {$::valgrind} { + $primary config set repl-timeout 100 + } else { + $primary config set repl-timeout 10 + } # Pause replica after primary fork $replica debug pause-after-fork 1