"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/integration/failover.tcl" between
redis-6.2.4.tar.gz and redis-6.2.5.tar.gz

About: redis is an advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.

failover.tcl  (redis-6.2.4):failover.tcl  (redis-6.2.5)
skipping to change at line 86 skipping to change at line 86
# Execute the failover # Execute the failover
$node_0 failover to $node_1_host $node_1_port $node_0 failover to $node_1_host $node_1_port
# Wait for failover to end # Wait for failover to end
wait_for_condition 50 100 { wait_for_condition 50 100 {
[s 0 master_failover_state] == "no-failover" [s 0 master_failover_state] == "no-failover"
} else { } else {
fail "Failover from node 0 to node 1 did not finish" fail "Failover from node 0 to node 1 did not finish"
} }
# stop the write load and make sure no more commands processed
stop_write_load $load_handler stop_write_load $load_handler
wait_load_handlers_disconnected
$node_2 replicaof $node_1_host $node_1_port $node_2 replicaof $node_1_host $node_1_port
wait_for_sync $node_0 wait_for_sync $node_0
wait_for_sync $node_2 wait_for_sync $node_2
assert_match *slave* [$node_0 role] assert_match *slave* [$node_0 role]
assert_match *master* [$node_1 role] assert_match *master* [$node_1 role]
assert_match *slave* [$node_2 role] assert_match *slave* [$node_2 role]
# We should accept psyncs from both nodes # We should accept psyncs from both nodes
assert_equal [expr [s -1 sync_partial_ok] - $initial_psyncs] 2 assert_equal [expr [s -1 sync_partial_ok] - $initial_psyncs] 2
 End of changes. 2 change blocks. 
0 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)