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
6f0b19bc
Commit
6f0b19bc
authored
Dec 04, 2017
by
antirez
Browse files
Regression test for #4505 (Lua AUX field loading).
parent
6a1bf07a
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/integration/replication-3.tcl
View file @
6f0b19bc
...
...
@@ -100,7 +100,6 @@ start_server {tags {"repl"}} {
close $fd
puts
"Master - Slave inconsistency"
puts
"Run diff -u against /tmp/repldump*.txt for more info"
}
set old_digest
[
r debug digest
]
...
...
@@ -109,5 +108,27 @@ start_server {tags {"repl"}} {
set new_digest
[
r debug digest
]
assert
{
$old
_digest eq $new_digest
}
}
test
{
SLAVE can reload
"lua"
AUX RDB fields of duplicated scripts
}
{
# Force a Slave full resynchronization
r debug change-repl-id
r -1 client kill type master
# Check that after a full resync the slave can still load
# correctly the RDB file: such file will contain
"lua"
AUX
# sections with scripts already in the memory of the master.
wait_for_condition 50 100
{
[
s -1 master_link_status
]
eq
{
up
}
}
else
{
fail
"Replication not started."
}
wait_for_condition 50 100
{
[
r debug digest
]
eq
[
r -1 debug digest
]
}
else
{
fail
"DEBUG DIGEST mismatch after full SYNC with many scripts"
}
}
}
}
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