-
Notifications
You must be signed in to change notification settings - Fork 3k
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
enhance: streaming node client implementation #34653
enhance: streaming node client implementation #34653
Conversation
@chyezh E2e jenkins job failed, comment |
3ffd30f
to
aa50e62
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #34653 +/- ##
==========================================
- Coverage 84.44% 84.41% -0.03%
==========================================
Files 892 904 +12
Lines 117014 117756 +742
==========================================
+ Hits 98807 99408 +601
- Misses 13836 13933 +97
- Partials 4371 4415 +44
|
rerun ut |
1 similar comment
rerun ut |
aa50e62
to
3794d3a
Compare
rerun ut |
3 similar comments
rerun ut |
rerun ut |
rerun ut |
3794d3a
to
48af2aa
Compare
} | ||
|
||
// Watch watches the channel assignment. | ||
func (w *watcherImpl) Watch(ctx context.Context, channel string, previous *types.PChannelInfoAssigned) error { |
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.
suggest adding start and end watch logs along with time costs.
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.
got it
}) | ||
return err | ||
} | ||
p.logger.Debug("send produce message to server", zap.Int64("requestID", requestID)) |
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.
remove the log to prevent too many logs are generated
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.
got it
|
||
// createHandlerUntilStreamingNodeReady creates a handler until streaming node ready. | ||
// If streaming node is not ready, it will block until new assignment term is coming or context timeout. | ||
func (hc *handlerClientImpl) createHandlerUntilStreamingNodeReady(ctx context.Context, pchannel string, create func(ctx context.Context, assign *types.PChannelInfoAssigned) (any, error)) (any, error) { |
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.
rename createHandlerUntilStreamingNodeReady to createHandlerAfterStreamingNodeReady
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.
will fix it soon
todo: refine connection granularity of consumer stream to pchannel level |
rerun ut |
48af2aa
to
34c9d14
Compare
rerun ut |
1 similar comment
rerun ut |
- add streaming node grpc client wrapper - add unittest for streaming node grpc client side - fix binary unsafe bug for message Signed-off-by: chyezh <[email protected]>
Signed-off-by: chyezh <[email protected]>
34c9d14
to
6a8c6c3
Compare
rerun ut |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: chyezh The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
issue: #33285