Closed roivaz closed 1 year ago
LGTM label has been added.
/approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: roivaz
The full list of commands accepted by this bot can be found here.
The pull request process is described here
It seems that even though the "sentinel master" command returns updated information about the master as soon as a slave is promoted, there is an exception with the sentinel instance that acts as "failover leader". The failover leader is the instance that actually performs the shard reconfigurations, and in this case, its "sentinel master " command only returns updated information when all the slaves have been also reconfigured to point to the new master. This causes delays in twemproxy reconfiguration if this is the instance used by the twemproxyconfig controller to "discover" the shard.
To detect this situation, add a step that checks the master address with the command "sentinel get-master-addr-by-name ". This command always returns updated master information, even if we are querying the leader sentinel instance.
This must be merged before #276 as it should be included in the new release.
/kind bug /priority important-soon /assign