-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update slotmap immediately when a connection is lost
The purpose is to detect the scenario that a failover has happened and the connection to the old master (now replica or no longer part of the cluster) doesn't necessarily mean that we have lost the connection to a master. Thus we postpone signaling 'cluster_not_ok' until the node down timeout has fired. This also means that reconnect failures don't immediately trigger 'cluster_not_ok'. A few test cases are affected by this change. Additionally some refactoring of test code is done to be able to reuse parts of it.
- Loading branch information
1 parent
326952c
commit 7259cde
Showing
2 changed files
with
126 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters