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
17411f7a
Commit
17411f7a
authored
Nov 13, 2012
by
antirez
Browse files
Test: check if MIGRATE is caching connections.
parent
05705bc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/dump.tcl
View file @
17411f7a
...
@@ -186,4 +186,23 @@ start_server {tags {"dump"}} {
...
@@ -186,4 +186,23 @@ start_server {tags {"dump"}} {
assert_match
{
IOERR*
}
$e
assert_match
{
IOERR*
}
$e
}
}
}
}
test
{
MIGRATE is caching connections
}
{
set first
[
srv 0 client
]
r set key
"Some Value"
start_server
{
tags
{
"repl"
}}
{
set second
[
srv 0 client
]
set second_host
[
srv 0 host
]
set second_port
[
srv 0 port
]
assert
{[
$first
exists key
]
== 1
}
assert
{[
$second
exists key
]
== 0
}
set rd
[
redis_deferring_client
]
$rd debug sleep 5.0
;
# Make second server unable to reply.
set e
{}
catch
{
r -1 migrate $second_host $second_port key 9 1000
}
e
assert_match
{
IOERR*
}
$e
}
}
}
}
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