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] Acquire rowsets at querying #13830
[BugFix] Acquire rowsets at querying #13830
Conversation
@mergify backport branch-2.3 branch-2.4 branch-2.5 |
✅ Backports have been created
|
branch-2.2 need to be cherry-picked manually. |
run starrocks_clang-tidy |
run starrocks_clang-tidy |
clang-tidy review says "All clean, LGTM! 👍" |
run starrocks_admit_test |
@Mergifyio backport branch-2.5 |
@Mergifyio backport branch-2.4 |
@Mergifyio backport branch-2.3 |
@Mergifyio backport branch-2.2 |
(cherry picked from commit c0a1b94) # Conflicts: # be/src/exec/pipeline/scan/olap_scan_context.cpp
(cherry picked from commit c0a1b94)
(cherry picked from commit c0a1b94)
✅ Backports have been created
|
✅ Backports have been created
|
✅ Backports have been created
|
✅ Backports have been created
|
(cherry picked from commit c0a1b94) # Conflicts: # be/src/exec/pipeline/scan/olap_scan_context.cpp # be/src/exec/pipeline/scan/olap_scan_context.h # be/src/exec/pipeline/scan/olap_scan_prepare_operator.cpp # be/src/exec/pipeline/scan/olap_scan_prepare_operator.h
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
clang-tidy review says "All clean, LGTM! 👍" |
(cherry picked from commit c0a1b94)
(cherry picked from commit c0a1b94)
What type of PR is this:
Which issues of this PR fixes :
This issue #3689 occurs again.
And maybe cause BE to be crashed.
Problem Summary(Required) :
#5056 changes the behaviour of stale rowsets.
shared_ptr<RowSet>.use_count()
is one.shared_ptr.use_count()
is greater than one but_refs_by_reader
is zero.Therefore, we need acquire rowsets after capturing them at querying.
Because we need call
release_rowsets
afterOlapScanPrepareOperator
andOlapScanOperator
are both destructed, we move the logic ofcapture_tablet_rowsets
fromOlapScanPrepareOperator
toOlapScanContext
.Checklist: