-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
client: Clean up RPC client on failed connect
This issue was caught debugging reconnect failures. We attempt to reconnect as soon as the server disconnects, which allows us to open a socket, but there is no reply (listdbs fails) at this point, when we retry again, the rpcClient is not nil, so we assume we're already connected and don't return an error. This commit ensures that the rpcClient is set to nil if we fail to fully connect and adjusts our tests to perform a container restart instead of simply disconnecting the client to test the reconnect behaviour. Signed-off-by: Dave Tucker <[email protected]>
- Loading branch information
1 parent
fe88f92
commit 2d41bfc
Showing
2 changed files
with
18 additions
and
8 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