-
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: use lazy initializing client for streaming node #38400
enhance: use lazy initializing client for streaming node #38400
Conversation
broker := broker.NewCoordBroker(dc, paramtable.GetNodeID()) | ||
cpUpdater := util.NewChannelCheckpointUpdater(broker) | ||
go cpUpdater.Start() | ||
// When the flusher exits, the cpUpdater should be closed. |
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.
Could this result in being unable to update the checkpoint when the flowgraphs are closing?
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
log.Info("StreamingNode wait for DataCoord ready") | ||
s.dataCoord.Set(dataCoord) | ||
return nil | ||
}) |
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.
retry.AttemptAlways() ?
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
log.Info("StreamingNode wait for RootCoord done") | ||
s.rootCoord.Set(rootCoord) | ||
return nil | ||
}, retry.AttemptAlways()) |
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.
Can we throw an error after the context ends instead of retrying indefinitely?
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.
retry will stop when error is context timeout or canceled
a321eb1
to
e59e3d9
Compare
@chyezh go-sdk check failed, comment |
@chyezh cpp-unit-test check failed, comment |
/lgtm |
e59e3d9
to
0dc6628
Compare
New changes are detected. LGTM label has been removed. |
@chyezh go-sdk check failed, comment |
rerun go-sdk |
Signed-off-by: chyezh <[email protected]>
Signed-off-by: chyezh <[email protected]>
0dc6628
to
d9ed5b9
Compare
@chyezh E2e jenkins job failed, comment |
/run-cpu-e2e |
[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 |
/lgtm |
@chyezh: you cannot LGTM your own PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
…8400) issue: milvus-io#38399 --------- Signed-off-by: chyezh <[email protected]>
issue: #38399