-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[Improvement] (pipeline) Cancel related query if backend restarts or dead #23863
Conversation
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
(From new machine)TeamCity pipeline, clickbench performance test result: |
3ece65e
to
be08cd4
Compare
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
(From new machine)TeamCity pipeline, clickbench performance test result: |
run buildall |
(From new machine)TeamCity pipeline, clickbench performance test result: |
ea1b7f3
to
ea3f858
Compare
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
1 similar comment
clang-tidy review says "All clean, LGTM! 👍" |
(From new machine)TeamCity pipeline, clickbench performance test result: |
ea3f858
to
8fd30d6
Compare
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
(From new machine)TeamCity pipeline, clickbench performance test result: |
8fd30d6
to
9d83143
Compare
clang-tidy review says "All clean, LGTM! 👍" |
run FE UT |
9d83143
to
45802f5
Compare
run buildall |
(From new machine)TeamCity pipeline, clickbench performance test result: |
for (Backend be : currentBackends) { | ||
curBeMap.put(be.getId(), be); | ||
} | ||
lock(); |
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.
use try (lock()) like RAII in cpp
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.
but here we do not have potential thrown exception? can we use try {lock()} finally {unlock();} either?
} | ||
lock(); | ||
|
||
for (Long id : idToBackend.keySet()) { |
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.
这里为什么要判断这个idToBackend, 按道理说直接BackendExecStates 就行了吧?
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.
嗯,这里可以删掉,只用 BackendExecStates 跟 PipelineExecContext 也是可以的
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.
这里为什么要判断这个idToBackend, 按道理说直接BackendExecStates 就行了吧?
idToBackend 是用来记录 某个 coordinator 在 prepare阶段时候 所有 be 信息的 snapshot。感觉我们这里索引数据结构太多了,很容易用乱,需要一个 multi_index container 这种数据结构
68b74d4
to
9ccb355
Compare
clang-tidy review says "All clean, LGTM! 👍" |
1 similar comment
clang-tidy review says "All clean, LGTM! 👍" |
run buildall |
(From new machine)TeamCity pipeline, clickbench performance test result: |
9ccb355
to
d886d98
Compare
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
(From new machine)TeamCity pipeline, clickbench performance test result: |
d886d98
to
b152b2f
Compare
clang-tidy review says "All clean, LGTM! 👍" |
b152b2f
to
9827147
Compare
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
(From new machine)TeamCity pipeline, clickbench performance test 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. |
PR approved by anyone 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
Proposed changes
This is the 2nd pr of #23704 , now we can cancel query if related backend restarts or dead. Privious pr is #23582