-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CXXCBC-606: Fix detection of disfunctional node
* remove "reopen()" API of the stream, the close is asynchronous anyway, so it is not correct to assume that the socket will be ready immediately. * remove open_ flag for stream, and instead proxy it directly to the socket to avoid "operation is already in progress" type of errors when trying to open the same socket twice. * re-arm connection_deadline_ when the socket is ready for data, use KV timeout for whole handshake with the single node. Re-initiate bootstrap using next bootstrap address in case of single node timeout. * reset reading_ flag in case of error. Ensure that the flag is reset if the session is not reading. * handle socket_closed_while_in_flight error, and if it happens during bootstrap, try next node in the list, otherwise preserve old behavior (close the connection, and let bucket to reopen it).
- Loading branch information
Showing
2 changed files
with
80 additions
and
71 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