-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[vtadmin] Update vtctld dialer to validate connectivity (#9915)
* Add WaitForReady to vtctldclient interface Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com> * Implement WaitForReady in grpcvtctldclient Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com> * Call WaitForReady in VTAdmin's vtctld proxy + add a test Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com> * Nit: typo Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com> * Add a grpc-connectivity-timeout config flag Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com> * Use WaitForReady instead of time.Sleep to detect client shutdown in TestRedial Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com> * Fix TestDial by adding ConnectivityTimeout option Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com> * Dedupe test logic with initVtctlServer helper Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com> * Add WaitForReady tests in grpcvtctldclient/client_test.go Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com> * Nits: wording + grammar Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com> * Don't early return from Dial on Close errors Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com> * Import the correct logging framework >:( Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com> * Remove extraneous log statements Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com> * Add defaultConnectivityTimeout var for use in unit tests Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com> * Add WaitForReady to fakevtctldclient Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com> * Use defaultConnectivityTimeout in proxy_test Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com> * var defaultConnectivityTimeout -> const Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com>
- Loading branch information
Showing
10 changed files
with
264 additions
and
21 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
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
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
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.