Skip to content
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](cloud-mow) FE should not request partition stats by snapshot read in calcDeleteBitmapForMow #39791

Merged

Conversation

zhannngchen
Copy link
Contributor

Proposed changes

Issue Number: close #xxx

#37670 Let FE call get_delete_bitmap_update_lock in calcDeleteBitmapForMow to get the latest compaction stats of the corresponding partition at the same time, so that in the downstream calcDelete bitmap task, it can let BE determine if there is a concurrent compaction conflict.

However, this PR uses snapshot read when fetching the partition stats, which makes it possible for us to fetch outdated stats, thus allowing the BE to miss the conflict processing of concurrent compaction, and generating duplicate keys.

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@zhannngchen
Copy link
Contributor Author

run buildall

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

@dataroaring dataroaring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions github-actions bot added approved Indicates a PR has been approved by one committer. reviewed labels Aug 26, 2024
Copy link
Contributor

PR approved by anyone and no changes requested.

@dataroaring dataroaring merged commit d8f9b00 into apache:master Aug 28, 2024
29 of 31 checks passed
dataroaring pushed a commit that referenced this pull request Aug 28, 2024
…ad in calcDeleteBitmapForMow (#39791)

## Proposed changes

Issue Number: close #xxx

#37670 Let FE call get_delete_bitmap_update_lock in
calcDeleteBitmapForMow to get the latest compaction stats of the
corresponding partition at the same time, so that in the downstream
calcDelete bitmap task, it can let BE determine if there is a concurrent
compaction conflict.

However, this PR uses snapshot read when fetching the partition stats,
which makes it possible for us to fetch outdated stats, thus allowing
the BE to miss the conflict processing of concurrent compaction, and
generating duplicate keys.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by one committer. dev/3.0.2-merged reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants