diff --git a/tests/integration/dual-channel-replication.tcl b/tests/integration/dual-channel-replication.tcl index a4ca7d7c3b..88631c7601 100644 --- a/tests/integration/dual-channel-replication.tcl +++ b/tests/integration/dual-channel-replication.tcl @@ -537,10 +537,12 @@ start_server {tags {"dual-channel-replication external:skip"}} { $primary config set repl-timeout 100 $replica config set repl-timeout 100 } else { - $primary config set repl-timeout 10 - $replica config set repl-timeout 10 + $primary config set repl-timeout 30 + $replica config set repl-timeout 30 } - $primary config set rdb-key-save-delay 200 + + # Avoids timeout by keeping the RDB child alive longer while the replica is inactive + $primary config set rdb-key-save-delay 1000 populate 10000 primary 10000 set load_handle1 [start_one_key_write_load $primary_host $primary_port 100 "mykey1"] @@ -556,10 +558,11 @@ start_server {tags {"dual-channel-replication external:skip"}} { test "dual-channel-replication: Primary COB growth with inactive replica" { $replica replicaof $primary_host $primary_port # Verify repl backlog can grow - wait_for_condition 1000 10 { + wait_for_condition 2000 10 { [s 0 mem_total_replication_buffers] > [expr {2 * $backlog_size}] } else { - fail "Primary should allow backlog to grow beyond its limits during dual-channel-replication sync handshake" + set cur [s 0 mem_total_replication_buffers] + fail "Primary should allow backlog (have=$cur, need>[expr {2 * $backlog_size}]) to grow beyond its limits during dual-channel-replication sync handshake" } wait_and_resume_process -1