Uh oh!
There was an error while loading. Please reload this page.
[fix](cloud-mow) get delete bitmap update lock should create a new Transaction when encounter TXN_TOO_OLD - #44691
[fix](cloud-mow) get delete bitmap update lock should create a new Transaction when encounter TXN_TOO_OLD#44691hust-hhb wants to merge 2 commits into
Conversation
doris-robot
commented
Nov 27, 2024
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
hust-hhb
commented
Nov 27, 2024
run buildall |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
| void internal_get_tablet_stats(MetaServiceCode& code, std::string& msg, Transaction* txn, | ||
| void internal_get_tablet_stats(MetaServiceCode& code, std::string& msg, | ||
| std::unique_ptr<Transaction>& txn, std::shared_ptr<TxnKv>& txn_kv, |
There was a problem hiding this comment.
This is a behavior change, semantic changed, txn atomic is not garanteed if we create a new txn.
Fix where this internal_get_tablet_stats() is called if we met TXN_TOO_OLD
There was a problem hiding this comment.
@gavinchou already change the code, take a look please
…ansaction when encounter TXN_TOO_OLD
hust-hhb
commented
Dec 4, 2024
run buildall |
hust-hhb
commented
Dec 4, 2024
run buildall |
| code = MetaServiceCode::OK; | ||
| txn = nullptr; | ||
| retry++; | ||
| err = txn_kv_->create_txn(&txn); |
There was a problem hiding this comment.
overwrite the txn cannot modify the "delete_bitmap_upldate_lock"
What problem does this PR solve?
Related PR: #37670
Problem Summary:
When the number of tablet is big, get delete bitmap update lock may cost over 5 seconds, which will lead to transaction timeout, we should create a new transaction to get the remaining tablet stats.
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)