redict/tests/sentinel
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
..
tests Remove duplicate zero-port sentinels (#9240) 2021-07-29 12:32:28 +03:00
tmp Sentinel test files / directories layout improved. 2014-04-24 11:08:22 +02:00
run.tcl Fix and cleanup Sentinel leaked fds test. (#8469) 2021-02-08 17:02:46 +02:00