-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Fix](cloud-mow) Compaciton should release delete bitmap lock when abort fail #47766
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) Compaciton should release delete bitmap lock when abort fail #47766
Conversation
…mmit or abort fail
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run buildall |
TPC-H: Total hot run time: 31420 ms |
TPC-DS: Total hot run time: 184540 ms |
ClickBench: Total hot run time: 29.91 s |
|
TeamCity be ut coverage result: |
|
run buildall |
|
TeamCity cloud ut coverage result: |
TPC-H: Total hot run time: 31629 ms |
|
TeamCity be ut coverage result: |
TPC-DS: Total hot run time: 189201 ms |
ClickBench: Total hot run time: 30.45 s |
| << ",tablet_id=" << tablet_id << ",lock_id=" << lock_id | ||
| << ",st=" << st.to_string(); | ||
| } | ||
| return st; |
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 not return the status?
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.
remove_delete_bitmap_update_lock just try to release lock, some times it may fail, like lock id not found beacause lock is expired and loading task has already taken the lock, in this situation, we can do nothing, just print a warnning lock is enought, so no need to return a wrong statu
|
run buildall |
|
TeamCity cloud ut coverage result: |
TPC-H: Total hot run time: 31361 ms |
TPC-DS: Total hot run time: 190200 ms |
ClickBench: Total hot run time: 30.23 s |
|
TeamCity be ut coverage result: |
|
run buildall |
|
TeamCity cloud ut coverage result: |
TPC-H: Total hot run time: 31345 ms |
TPC-DS: Total hot run time: 183628 ms |
ClickBench: Total hot run time: 30.63 s |
|
TeamCity be ut coverage result: |
zhannngchen
left a comment
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. |
| // will release if abort job successfully, but if abort failed, delete bitmap | ||
| // lock will not release, in this situation, be need to send this rpc to ms | ||
| // to try to release delete bitmap lock. | ||
| _engine.meta_mgr().remove_delete_bitmap_update_lock( |
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.
"If the RPC to release the lock fails here, will the lock still not be released?"
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, this pr just try to release lock, it may fail on TXN_KV_CONFICT, this problem has existed for a long time, if release rpc fail, this lock will be released when lock is expired.
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.
@luwei16 It's ok if the rpc failed to release lock here, it's the same with rpc failed on commit phase.
dataroaring
left a comment
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
…ort fail (apache#47766) ### What problem does this PR solve? When trigger cu or base compaciton with full compaction in the same time, compaciton may abort fail, delete bitmap lock will hold by the failed compaciton, in this situation, need to release delete bitmap lock.
…ort fail (apache#47766) ### What problem does this PR solve? When trigger cu or base compaciton with full compaction in the same time, compaciton may abort fail, delete bitmap lock will hold by the failed compaciton, in this situation, need to release delete bitmap lock.
What problem does this PR solve?
When trigger cu or base compaciton with full compaction in the same time, compaciton may abort fail, delete bitmap lock will hold by the failed compaciton, in this situation, need to release delete bitmap lock.
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)