-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cli: make the quit command more robust #14775
Conversation
2345bba
to
53b785e
Compare
Well I'm not sure how this fixes #14184, but lgtm otherwise. Reviewed 2 of 2 files at r1. pkg/cli/start.go, line 650 at r1 (raw file):
what error are you expecting here? Comments from Reviewable |
I hope it fixes it because the failures I saw were the "connection is fucked" errors received by the grpc call itself (as opposed to received by Review status: all files reviewed at latest revision, 1 unresolved discussion, all commit checks successful. pkg/cli/start.go, line 650 at r1 (raw file): Previously, tamird (Tamir Duberstein) wrote…
I'm not expecting any errors... Other than Comments from Reviewable |
Review status: all files reviewed at latest revision, 1 unresolved discussion, all commit checks successful. pkg/cli/start.go, line 650 at r1 (raw file): Previously, andreimatei (Andrei Matei) wrote…
why is this loop not infinite? Does the remote hang up? Comments from Reviewable |
Reviewed 2 of 2 files at r1. pkg/cli/start.go, line 645 at r1 (raw file):
Minor, but is the "error sending drain request" part of this message actually clarifying anything for anyone? pkg/cli/start.go, line 650 at r1 (raw file): Previously, tamird (Tamir Duberstein) wrote…
I'm also curious about this. Shouldn't we just close the stream and return rather than receiving on it? Comments from Reviewable |
Review status: all files reviewed at latest revision, 2 unresolved discussions, all commit checks successful. pkg/cli/start.go, line 645 at r1 (raw file): Previously, a-robinson (Alex Robinson) wrote…
ummm I dunno... It gives some info about the context; I'll keep it. pkg/cli/start.go, line 650 at r1 (raw file):
Apparently there's no "close the stream". With a "client stream" you can close the send direction, but not the receive direction (I have no idea why there's a Comments from Reviewable |
Review status: all files reviewed at latest revision, 2 unresolved discussions, all commit checks successful. pkg/cli/start.go, line 650 at r1 (raw file): Previously, andreimatei (Andrei Matei) wrote…
We should at least log if we get a non EOF error here. Comments from Reviewable |
Fixes cockroachdb#14184 The quit command send a streaming RPC and expects the connection to drop. Except it wasn't handling the case where the connection dropped before the client was even returning from the RPC call.
Review status: all files reviewed at latest revision, 2 unresolved discussions, all commit checks successful. pkg/cli/start.go, line 650 at r1 (raw file): Previously, tamird (Tamir Duberstein) wrote…
Done. Comments from Reviewable |
Reviewed 1 of 1 files at r2. Comments from Reviewable |
Fixes #14184
The quit command send a streaming RPC and expects the connection to
drop. Except it wasn't handling the case where the connection dropped
before the client was even returning from the RPC call.