-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[BugFix] Fix hang because of empty scan ranges #9458
Conversation
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
return Status::OK(); | ||
} | ||
|
||
Status ConnectorScanNode::_start_scan_thread(RuntimeState* state) { | ||
for (TScanRangeParams& scan_range : _scan_ranges) { | ||
_create_and_init_scanner(state, scan_range.scan_range); | ||
} | ||
_num_scanners = _pending_scanners.size(); |
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.
when will _num_scanners == 0
happen?
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.
@DorianZheng when there is no scan file in this table.
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.
OK, got it. Why not prevent this case on FE?
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.
Yes. That would also solve the problem. It generates an EMPTY NODE.
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.
Why does it generate an empty node instead of return early?
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.
left a comment, rest LGTM
run starrocks_admit_test |
@Mergifyio backport branch-2.3 |
(cherry picked from commit 9f538f4) # Conflicts: # be/src/exec/vectorized/connector_scan_node.cpp
✅ Backports have been created
|
@Mergifyio backport branch-2.4 |
✅ Backports have been created
|
(cherry picked from commit 9f538f4) # Conflicts: # be/test/formats/parquet/file_reader_test.cpp
What type of PR is this:
Which issues of this PR fixes :
Fixes #https://github.com/StarRocks/StarRocksTest/issues/870
Fixes #9411
Problem Summary(Required) :
We don't handle empty scan range properly.