forked from olivere/elastic
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent deadlock when all nodes are dead
If we don't rely on sniffing to find healthy nodes, a client might be stuck with all nodes dead and never return. To resolve this situation we mark all nodes as alive in that case. The next call to `PerformRequest` will then find a node that is marked as alive (not healthy) and will retry. If a node came back in the meantime, it will be marked as healthy. Such a deadlock situation will also get logged. See discussion in olivere#192.
- Loading branch information
Showing
2 changed files
with
58 additions
and
13 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