Fix a valgrind test failure due to slowly shutdown (#10038)

This pr is mainly to solve the problem that redis process cannot be exited normally, due to changes in #10003.
When a test uses the `key-load-delay` config to delay loading, but does not reset it at the end of the test, will lead to server wait for the loading to reach the event
loop (once in 2mb) before actually shutting down.
This commit is contained in:
sundb 2022-01-01 23:45:13 +08:00 committed by GitHub
parent 39ced1afa1
commit 888e92eb57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -944,6 +944,7 @@ test "diskless replication child being killed is collected" {
set loglines [count_log_lines 0]
$replica config set repl-diskless-load swapdb
$replica config set key-load-delay 1000000
$replica config set loading-process-events-interval-bytes 1024
$replica replicaof $master_host $master_port
# wait for the replicas to start reading the rdb
@ -962,6 +963,9 @@ test "diskless replication child being killed is collected" {
} else {
fail "rdb child didn't terminate"
}
# Speed up shutdown
$replica config set key-load-delay 0
}
}
} {} {external:skip}