[fix](txn) Fix coordidator be restart not abort txn#35342
[fix](txn) Fix coordidator be restart not abort txn#35342dataroaring merged 2 commits intoapache:masterfrom
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
clang-tidy review says "All clean, LGTM! 👍" |
|
run buildall |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
TPC-H: Total hot run time: 40765 ms |
TPC-DS: Total hot run time: 172652 ms |
ClickBench: Total hot run time: 30.08 s |
|
TeamCity be ut coverage result: |
|
run p0 |
dataroaring
left a comment
There was a problem hiding this comment.
- httpstream should be handled
- Test cases should include insert into values and what about if a fe is restated.
| } | ||
| request.__set_request_id(ctx->id.to_thrift()); | ||
| request.__set_backend_id(_exec_env->master_info()->backend_id); | ||
|
|
There was a problem hiding this comment.
httpstream shoud also be considered.
There was a problem hiding this comment.
had fix httpstream
|
0dc1c1d to
7adb998
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
|
run buildall |
TPC-H: Total hot run time: 41105 ms |
TPC-DS: Total hot run time: 172354 ms |
ClickBench: Total hot run time: 30.4 s |
|
TeamCity be ut coverage result: |
|
clang-tidy review says "All clean, LGTM! 👍" |
|
run buildall |
TPC-H: Total hot run time: 40701 ms |
TPC-DS: Total hot run time: 173546 ms |
ClickBench: Total hot run time: 30.97 s |
|
TeamCity be ut coverage result: |
There was a problem hiding this comment.
short name is preferred, like st.
03abb17 to
daf6f98
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
1 similar comment
|
clang-tidy review says "All clean, LGTM! 👍" |
|
run buildall |
TPC-H: Total hot run time: 40520 ms |
TPC-DS: Total hot run time: 174151 ms |
ClickBench: Total hot run time: 30.55 s |
|
TeamCity be ut coverage result: |
|
PR approved by at least one committer and no changes requested. |
BUG: fe will abort coordidator BE's txn when be shutdown exceeds 5min. But if BE restart within 5min, then this BE's txns will not abort until timeout. FIX: every txn will record BE's id and its start time. When fe found be's startTime change, it will abort the BE's old txns.
…pache#28662, apache#35342) (apache#39317) cherry-pick: apache#22781, apache#28662, apache#35342 --------- Co-authored-by: HHoflittlefish777 <77738092+HHoflittlefish777@users.noreply.github.com>
BUG: fe will abort coordidator BE's txn when be shutdown exceeds 5min. But if BE restart within 5min, then this BE's txns will not abort until timeout.
FIX: every txn will record BE's id and its start time. When fe found be's startTime change, it will abort the BE's old txns.
Proposed changes
Issue Number: close #xxx
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...