-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](cloud-mow) Fix the issue of inaccurate estimation of txn size when updating delete bitmap #46969
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
Conversation
…hen updating delete bitmap
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run buildall |
|
run buildall |
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. |
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
…hen updating delete bitmap (#46969) fdb_txn_size is not key size+value size, actually txn size is the triple of key size plus value size at least for writing, so use txn->approximate_bytes() to calculating txn size is more accurate. However, txn->approximate_bytes() is not 100% accurate either, in my test, when txn->approximate_bytes() bingger than 8.3MB, it will meet Transaction exceeds byte limit error.
This case is used to test the scenario of updating a large number of delete bitmap when doing compaction, if delete bitmap size over the fdb limit(10MB), updating delete bitmap will fail, pr #46969 fix this problem, before the fix, this case will fail with error msg "Transaction exceeds byte limit" on metaservice.
This case is used to test the scenario of updating a large number of delete bitmap when doing compaction, if delete bitmap size over the fdb limit(10MB), updating delete bitmap will fail, pr #46969 fix this problem, before the fix, this case will fail with error msg "Transaction exceeds byte limit" on metaservice.
…hen updating delete bitmap (apache#46969) fdb_txn_size is not key size+value size, actually txn size is the triple of key size plus value size at least for writing, so use txn->approximate_bytes() to calculating txn size is more accurate. However, txn->approximate_bytes() is not 100% accurate either, in my test, when txn->approximate_bytes() bingger than 8.3MB, it will meet Transaction exceeds byte limit error.
This case is used to test the scenario of updating a large number of delete bitmap when doing compaction, if delete bitmap size over the fdb limit(10MB), updating delete bitmap will fail, pr apache#46969 fix this problem, before the fix, this case will fail with error msg "Transaction exceeds byte limit" on metaservice.
This case is used to test the scenario of updating a large number of delete bitmap when doing compaction, if delete bitmap size over the fdb limit(10MB), updating delete bitmap will fail, pr apache#46969 fix this problem, before the fix, this case will fail with error msg "Transaction exceeds byte limit" on metaservice.
…f txn size when updating delete bitmap apache#46969 (apache#3920)
fdb_txn_size is not key size+value size, actually txn size is the triple of key size plus value size at least for writing, so use txn->approximate_bytes() to calculating txn size is more accurate. However, txn->approximate_bytes() is not 100% accurate either, in my test, when txn->approximate_bytes() bingger than 8.3MB, it will meet Transaction exceeds byte limit error.
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)