Uh oh!
There was an error while loading. Please reload this page.
[fix](commit) Fix does not skip commit if txn state is committed or visible - #39786
Conversation
doris-robot
commented
Aug 22, 2024
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
mymeiyi
commented
Aug 22, 2024
run buildall |
yujun777
left a comment
There was a problem hiding this comment.
void XXXTransaction() {
readlock()
txn = getTransaction()
checkTransactionStateBeforeXXX() readunlock()
do something no need lock()
writeLock()
checkTransactionStateBeforeXXX() ...
writeUnlock()
}
maybe in write lock scope, check transaction status again is better ?
here XXXTransaction XXX should include PreCommit/Commit/Abort
doris-robot
commented
Aug 22, 2024
TPC-H: Total hot run time: 38382 ms |
doris-robot
commented
Aug 22, 2024
TPC-DS: Total hot run time: 186931 ms |
doris-robot
commented
Aug 22, 2024
ClickBench: Total hot run time: 30.71 s |
mymeiyi
commented
Aug 23, 2024
run fe_ut |
mymeiyi
commented
Aug 23, 2024
run feut |
PR approved by at least one committer and no changes requested. |
liaoxin01
commented
Aug 23, 2024
Please add a description of what scenario triggers the issue. |
dataroaring
left a comment
There was a problem hiding this comment.
There should be a lock hold when check and commit. Otherwise, two parallel thread may check ok and commit together. It seems that lock on trasaction state is enough.
PR approved by at least one committer and no changes requested. |
…isible (apache#39786) introduced in apache#32980 if a txn is committed twice, the check txn state is committed or visible and skip commit logic does not work
introduced in #32980
if a txn is committed twice, the check txn state is committed or visible and skip commit logic does not work