-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Transaction] Guarantee transaction metadata handlers connect #8563
[Transaction] Guarantee transaction metadata handlers connect #8563
Conversation
}); | ||
} else { | ||
return FutureUtil.failedFuture(new CoordinatorClientStateException("Can not start while current state is " + state)); | ||
} | ||
} | ||
|
||
private String getTCAssignTopicName(int partition) { | ||
if (partition > 0) { |
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.
if (partition > 0) { | |
if (partition >= 0) { |
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.
Ok, I'll fix this.
/pulsarbot run-failure-checks |
1 similar comment
/pulsarbot run-failure-checks |
Thanks @gaoran10 for fixing this problem so quickly, this is very valuable to me. |
…#8563) ### Motivation Currently, the transaction metadata handlers start with pulsar client start, but the handlers connect with the broker asynchronously, if the client restart, the metadata handler may not be available. ### Modifications Add the connection future for the metadata handler.
Motivation
Currently, the transaction metadata handlers start with pulsar client start, but the handlers connect with the broker asynchronously, if the client restart, the metadata handler may not be available.
Modifications
Add the connection future for the metadata handler.
Verifying this change
This change added tests and can be verified as follows:
Does this pull request potentially affect one of the following parts:
If
yes
was chosen, please highlight the changes