-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
clientv3: fix retry/streamer error message #11313
Conversation
Codecov Report
@@ Coverage Diff @@
## master #11313 +/- ##
==========================================
+ Coverage 64.18% 64.31% +0.13%
==========================================
Files 403 403
Lines 37966 37968 +2
==========================================
+ Hits 24369 24421 +52
+ Misses 11954 11905 -49
+ Partials 1643 1642 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC, the error on line 117 corresponds to the first attempt of calling streamer()
, the error on line 195 corresponds to the retries of the same function call. If this is the case, maybe it make sense to use the same / similar format for these two messages?
Signed-off-by: Gyuho Lee <[email protected]>
// We start off from attempt 1, because zeroth was already made on normal SendMsg(). | ||
for attempt := uint(1); attempt < s.callOpts.max; attempt++ { | ||
if err := waitRetryBackoff(s.ctx, attempt, s.callOpts); err != nil { | ||
return err | ||
} | ||
newStream, err := s.reestablishStreamAndResendBuffer(s.ctx) | ||
if err != nil { | ||
// TODO(mwitkow): Maybe dial and transport errors should be retriable? | ||
return err | ||
s.client.lg.Error("failed reestablishStreamAndResendBuffer", zap.Error(err)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jingyih It's a different call.
streamer
above is only for creating a stream.
Here, it's handling the error for streamer
and resending the buffers.
LGTM |
Fix #11310.
serverStreamingRetryingStream
is doing all retries.Logging should be moved there.
/cc @jpbetz @jingyih