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
d0949b7c
Unverified
Commit
d0949b7c
authored
Jan 10, 2022
by
Madelyn Olson
Committed by
GitHub
Jan 10, 2022
Browse files
Fix timing issue with cluster hostname test (#10086)
parent
bd46a2ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/cluster/tests/27-endpoints.tcl
View file @
d0949b7c
...
...
@@ -166,6 +166,16 @@ test "Verify the nodes configured with prefer hostname only show hostname for ne
# Have a replica meet the isolated node
R 3 cluster meet 127.0.0.1
[
get_instance_attrib redis 6 port
]
# Wait for the isolated node to learn about the rest of the cluster,
# which correspond to a single entry in cluster nodes. Note this
# doesn't mean the isolated node has successfully contacted each
# node.
wait_for_condition 50 100
{
[
llength
[
split
[
R 6 CLUSTER NODES
]
"
\n
"
]]
eq 21
}
else
{
fail
"Isolated node didn't learn about the rest of the cluster *"
}
# Now, we wait until the two nodes that aren't filtering packets
# to accept our isolated nodes connections. At this point they will
# start showing up in cluster slots.
...
...
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