[improve][transaction] Optimize topic lookup when TC end tx. - #14991
Merged
codelipenghui merged 8 commits intoApr 12, 2022
Conversation
HQebupt
approved these changes
Apr 2, 2022
Technoboy-
force-pushed
the
optimise-tx-lookup-topic
branch
from
April 2, 2022 07:50
ab1c916 to
66c44f9
Compare
Technoboy-
force-pushed
the
optimise-tx-lookup-topic
branch
from
April 6, 2022 10:23
9af5f37 to
0f24949
Compare
mattisonchao
approved these changes
Apr 8, 2022
congbobo184
approved these changes
Apr 11, 2022
codelipenghui
approved these changes
Apr 12, 2022
aparajita89
pushed a commit
to aparajita89/pulsar
that referenced
this pull request
Apr 18, 2022
…14991) ### Motivation When TC ends tx, it has to look up the topic. The original way uses pulsar-client to do this. It will look up every topic. If using bundle cache to find the topic owner broker, it can avoid lookup every topic and then decrease the lookup time. ### Modifications - Using bundle cache to find the topic owner broker. If occurs an error, fall back to look up the topic. - Remove the topic cache, because using bundle cache, the original cache is useless.
codelipenghui
pushed a commit
that referenced
this pull request
Apr 19, 2022
### Motivation When TC ends tx, it has to look up the topic. The original way uses pulsar-client to do this. It will look up every topic. If using bundle cache to find the topic owner broker, it can avoid lookup every topic and then decrease the lookup time. ### Modifications - Using bundle cache to find the topic owner broker. If occurs an error, fall back to look up the topic. - Remove the topic cache, because using bundle cache, the original cache is useless. (cherry picked from commit 46baae6)
codelipenghui
pushed a commit
that referenced
this pull request
Apr 19, 2022
When TC ends tx, it has to look up the topic. The original way uses pulsar-client to do this. It will look up every topic. If using bundle cache to find the topic owner broker, it can avoid lookup every topic and then decrease the lookup time. - Using bundle cache to find the topic owner broker. If occurs an error, fall back to look up the topic. - Remove the topic cache, because using bundle cache, the original cache is useless. (cherry picked from commit 46baae6)
Nicklee007
pushed a commit
to Nicklee007/pulsar
that referenced
this pull request
Apr 20, 2022
…14991) ### Motivation When TC ends tx, it has to look up the topic. The original way uses pulsar-client to do this. It will look up every topic. If using bundle cache to find the topic owner broker, it can avoid lookup every topic and then decrease the lookup time. ### Modifications - Using bundle cache to find the topic owner broker. If occurs an error, fall back to look up the topic. - Remove the topic cache, because using bundle cache, the original cache is useless.
codelipenghui
pushed a commit
to codelipenghui/incubator-pulsar
that referenced
this pull request
May 17, 2022
…14991) When TC ends tx, it has to look up the topic. The original way uses pulsar-client to do this. It will look up every topic. If using bundle cache to find the topic owner broker, it can avoid lookup every topic and then decrease the lookup time. - Using bundle cache to find the topic owner broker. If occurs an error, fall back to look up the topic. - Remove the topic cache, because using bundle cache, the original cache is useless. (cherry picked from commit 46baae6)
14 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
When TC ends tx, it has to look up the topic. The original way uses pulsar-client to do this. It will look up every topic.
If using bundle cache to find the topic owner broker, it can avoid lookup every topic and then decrease the lookup time.
Modifications
Documentation
no-need-doc