Fix timing issue in replication buffer test (#9697)

Introduced in #9166
This commit is contained in:
Wang Yuan 2021-10-29 13:04:12 +08:00 committed by GitHub
parent 22a778c880
commit 68886de085
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

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