Fix timing issue in replication buffer test (#9697)

Introduced in #9166
This commit is contained in:
Wang Yuan
2021-10-29 08:04:12 +03:00
committed by GitHub
parent 22a778c880
commit 68886de085
+8
View File
@@ -96,6 +96,14 @@ start_server {} {
$master config set save ""
$master config set repl-backlog-size 16384
$master config set client-output-buffer-limit "replica 0 0 0"
# Executing 'debug digest' on master which has many keys costs much time
# (especially in valgrind), this causes that replica1 and replica2 disconnect
# with master.
$master config set repl-timeout 1000
$replica1 config set repl-timeout 1000
$replica2 config set repl-timeout 1000
$replica1 replicaof $master_host $master_port
wait_for_sync $replica1