-
Notifications
You must be signed in to change notification settings - Fork 276
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
fix a bug about send notify message to remote node. #16696
Conversation
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Review 🔍
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions ✨
|
这个暂时不合并,等待测试。 |
User description
What type of PR is this?
Which issue(s) this PR fixes:
https://github.com/matrixorigin/MO-Cloud/issues/2788
What this PR does / why we need it:
调整接收远程节点的dispatch发送的数据时,关闭流和cancel上下文的顺序。确保相关上下文cancel后再关闭流。
PR Type
Bug fix
Description
This PR addresses a bug related to sending notify messages to remote nodes by improving error handling and context management:
errChan
topreScopeResultReceiveChan
for better clarity in handling pre-scope results.notifyMessageResultReceiveChan
to handle results from notify message routines.notifyAndReceiveFromRemote
function withsendNotifyMessage
to improve context handling and error reporting.Changes walkthrough 📝
scope.go
Improve error handling and context management in
MergeRun
and relatedfunctions.
pkg/sql/compile/scope.go
errChan
topreScopeResultReceiveChan
for clarity.notifyMessageResultReceiveChan
to handle notify messageresults.
misreporting errors.
notifyAndReceiveFromRemote
withsendNotifyMessage
for bettercontext handling.