-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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](txn) Fix coordidator be restart not abort txn #35342
[fix](txn) Fix coordidator be restart not abort txn #35342
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 |
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.
- httpstream should be handled
- Test cases should include insert into values and what about if a fe is restated.
@@ -174,6 +175,7 @@ Status StreamLoadExecutor::begin_txn(StreamLoadContext* ctx) { | |||
request.__set_timeout(ctx->timeout_second); | |||
} | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
httpstream shoud also be considered.
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.
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: |
@SerializedName(value = "ip") | ||
public String ip; | ||
// frontend/backend start time | ||
@SerializedName(value = "startTime") |
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.
short name is preferred, like 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.
change to 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: |
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. |
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
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.
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...