redict/tests/support
Wen Hui db41536454
Remove duplicate zero-port sentinels (#9240)
The issue is that when a sentinel with the same address and IP is turned on with a different runid, its port is set to 0 but it is still present in the dictionary master->sentinels which contain all the sentinels for a master.

This causes a problem when we do INFO SENTINEL because it takes the size of the dictionary of sentinels. This might also cause a problem for failover if enough sentinels have their port set to 0 since the number of voters in failover is also determined by the size of the dictionary of sentinels.

This commits removes the sentinels with the port set to zero from the dictionary of sentinels.
Fixes #8786
2021-07-29 12:32:28 +03:00
..
benchmark.tcl TLS: Add different client cert support. (#8076) 2020-12-11 18:31:40 +02:00
cli.tcl Improve bind and protected-mode config handling. (#9034) 2021-06-22 12:50:17 +03:00
cluster.tcl Add support for plaintext clients in TLS cluster (#8587) 2021-03-30 23:11:32 +03:00
redis.tcl Test infra, handle RESP3 attributes and big-numbers and bools (#9235) 2021-07-14 19:14:31 +03:00
server.tcl Improve bind and protected-mode config handling. (#9034) 2021-06-22 12:50:17 +03:00
test.tcl Improve test suite to handle external servers better. (#9033) 2021-06-09 15:13:24 +03:00
tmpfile.tcl Initial implementation of a client-server parallel testing system for Redis in order to speedup execution of the test suite. 2011-07-10 23:25:48 +02:00
util.tcl Remove duplicate zero-port sentinels (#9240) 2021-07-29 12:32:28 +03:00