-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 segment mem_usage race condition #34283
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kevincai
force-pushed
the
fix-column-reader-core-4
branch
7 times, most recently
from
November 6, 2023 01:54
fa84c5c
to
fbe6390
Compare
wyb
reviewed
Nov 6, 2023
kevincai
force-pushed
the
fix-column-reader-core-4
branch
from
November 6, 2023 03:11
fbe6390
to
6b7736d
Compare
* protect the Segment::mem_usage() with open_once flag * TabletManager is able to skip the cache size update if the segment in the cache is not the same as expected one. * MetaCache support `cache_segment_if_absent` interface. * fixes StarRocks#34273 Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com>
kevincai
force-pushed
the
fix-column-reader-core-4
branch
from
November 6, 2023 03:13
6b7736d
to
d0ccdc3
Compare
wyb
approved these changes
Nov 6, 2023
sduzh
approved these changes
Nov 6, 2023
[FE Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
@Mergifyio backport branch-3.2 |
@Mergifyio backport branch-3.1 |
✅ Backports have been created
|
✅ Backports have been created
|
mergify bot
pushed a commit
that referenced
this pull request
Nov 6, 2023
* protect the Segment::mem_usage() with open_once flag * TabletManager is able to skip the cache size update if the segment in the cache is not the same as expected one. * MetaCache support `cache_segment_if_absent` interface. Fixes #34273 Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com> (cherry picked from commit ef1a2a8)
mergify bot
pushed a commit
that referenced
this pull request
Nov 6, 2023
* protect the Segment::mem_usage() with open_once flag * TabletManager is able to skip the cache size update if the segment in the cache is not the same as expected one. * MetaCache support `cache_segment_if_absent` interface. Fixes #34273 Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com> (cherry picked from commit ef1a2a8)
[BE Incremental Coverage Report]❌ fail : 25 / 37 (67.57%) file detail
|
wanpengfei-git
pushed a commit
that referenced
this pull request
Nov 6, 2023
* protect the Segment::mem_usage() with open_once flag * TabletManager is able to skip the cache size update if the segment in the cache is not the same as expected one. * MetaCache support `cache_segment_if_absent` interface. Fixes #34273 Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com> (cherry picked from commit ef1a2a8)
kevincai
added a commit
to kevincai/starrocks
that referenced
this pull request
Nov 6, 2023
* protect the Segment::mem_usage() with open_once flag * TabletManager is able to skip the cache size update if the segment in the cache is not the same as expected one. * MetaCache support `cache_segment_if_absent` interface. Fixes StarRocks#34273 Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com> (cherry picked from commit ef1a2a8) Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com>
manual backport to branch-3.1 at #34446 |
kevincai
added a commit
to kevincai/starrocks
that referenced
this pull request
Nov 6, 2023
* protect the Segment::mem_usage() with open_once flag * TabletManager is able to skip the cache size update if the segment in the cache is not the same as expected one. * MetaCache support `cache_segment_if_absent` interface. Fixes StarRocks#34273 Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com> (cherry picked from commit ef1a2a8) Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com>
kevincai
added a commit
to kevincai/starrocks
that referenced
this pull request
Nov 6, 2023
* protect the Segment::mem_usage() with open_once flag * TabletManager is able to skip the cache size update if the segment in the cache is not the same as expected one. * MetaCache support `cache_segment_if_absent` interface. Fixes StarRocks#34273 Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com> (cherry picked from commit ef1a2a8) Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com>
imay
pushed a commit
that referenced
this pull request
Nov 7, 2023
* protect the Segment::mem_usage() with open_once flag * TabletManager is able to skip the cache size update if the segment in the cache is not the same as expected one. * MetaCache support `cache_segment_if_absent` interface. Fixes #34273 (cherry picked from commit ef1a2a8) Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com>
xiangguangyxg
pushed a commit
to xiangguangyxg/starrocks
that referenced
this pull request
Nov 8, 2023
…Rocks#34446) * protect the Segment::mem_usage() with open_once flag * TabletManager is able to skip the cache size update if the segment in the cache is not the same as expected one. * MetaCache support `cache_segment_if_absent` interface. Fixes StarRocks#34273 (cherry picked from commit ef1a2a8) Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
cache_segment_if_absent
interface.Fixes #34273
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: