-
Notifications
You must be signed in to change notification settings - Fork 992
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor cluster topology refresh to non-blocking operations #1107
The cluster topology refresh now no longer uses a blocking task to obtain the topology but uses a non-blocking sequence of futures to connect to nodes, request client and topology details and to return results. Previously, topology refresh was partially asynchronous by connecting to all nodes and sending commands in parallel. The synchronization to await all connections and command completion was blocking which kept a carrier thread busy until the refresh task completed. The side effect of keeping a worker thread busy was that command expiry and other work got delayed until the topology refresh released the thread.
- Loading branch information
Showing
19 changed files
with
910 additions
and
992 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
Oops, something went wrong.