-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[Pipeline] Fix PipScannerContext::can_finish return wrong status #15259
[Pipeline] Fix PipScannerContext::can_finish return wrong status #15259
Conversation
clang-tidy review says "All clean, LGTM! 👍" |
TeamCity pipeline, clickbench performance test result: |
4fd9fa7
to
f143dff
Compare
clang-tidy review says "All clean, LGTM! 👍" |
1 similar comment
clang-tidy review says "All clean, LGTM! 👍" |
2f788f6
to
9711cb7
Compare
clang-tidy review says "All clean, LGTM! 👍" |
9711cb7
to
e127f05
Compare
clang-tidy review says "All clean, LGTM! 👍" |
e127f05
to
3a9fe5c
Compare
clang-tidy review says "All clean, LGTM! 👍" |
3a9fe5c
to
6e67296
Compare
clang-tidy review says "All clean, LGTM! 👍" |
2f448ca
to
6e67296
Compare
clang-tidy review says "All clean, LGTM! 👍" |
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.
LGTM
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
Proposed changes
Issue Number: close #xxx
Problem summary
Now in
ScannerContext::push_back_scanner_and_reschedule
,_num_running_scanners--
is before_num_scheduling_ctx++
.In
PipScannerContext::can_finish
, we check_num_running_scanners == 0 && _num_scheduling_ctx == 0
without obtaining_transfer_lock
.In follow case,
PipScannerContext::can_finish
will return wrong result.So, we can set
_num_running_scanners--
in the last of this func.Describe your changes.
PipScannerContext::get_block_from_queue
not block._num_running_scanners--
in the last ofScannerContext::push_back_scanner_and_reschedule
.Checklist(Required)
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...