Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
639674b3
Commit
639674b3
authored
Jul 10, 2014
by
antirez
Browse files
Test: more reliable AOF rewrite test under write load.
parent
0e22e4ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/aofrw.tcl
View file @
639674b3
...
@@ -39,6 +39,16 @@ start_server {tags {"aofrw"}} {
...
@@ -39,6 +39,16 @@ start_server {tags {"aofrw"}} {
stop_write_load $load_handle3
stop_write_load $load_handle3
stop_write_load $load_handle4
stop_write_load $load_handle4
# Make sure that we remain the only connected client.
# This step is needed to make sure there are no pending writes
# that will be processed between the two
"debug digest"
calls.
wait_for_condition 50 100
{
[
llength
[
split
[
string trim
[
r client list
]]
"
\n
"
]]
== 1
}
else
{
puts
[
r client list
]
fail
"Clients generating loads are not disconnecting"
}
# Get the data set digest
# Get the data set digest
set d1
[
r debug digest
]
set d1
[
r debug digest
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment