-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Transaction] Transaction coordinator client connect add response command. #12301
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
Merged
congbobo184
merged 19 commits into
apache:master
from
congbobo184:congbobo184_transaction_coordinator_fence_mechanism
Oct 9, 2021
Merged
[Transaction] Transaction coordinator client connect add response command. #12301
congbobo184
merged 19 commits into
apache:master
from
congbobo184:congbobo184_transaction_coordinator_fence_mechanism
Oct 9, 2021
Conversation
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
…mechanism # Conflicts: # pulsar-broker/src/main/java/org/apache/pulsar/broker/service/ServerCnx.java # pulsar-client/src/main/java/org/apache/pulsar/client/impl/TransactionMetaStoreHandler.java # pulsar-common/src/main/java/org/apache/pulsar/common/protocol/Commands.java # pulsar-common/src/main/java/org/apache/pulsar/common/protocol/PulsarDecoder.java # pulsar-common/src/main/proto/PulsarApi.proto
eolivelli
approved these changes
Oct 8, 2021
Contributor
eolivelli
left a comment
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
| cnx.channel().close(); | ||
| } | ||
| // if broker protocol version < 19, don't send TcClientConnectRequest to broker. | ||
| if (cnx.getRemoteEndpointProtocolVersion() > ProtocolVersion.v18.getValue()) { |
Contributor
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.
this is great
codelipenghui
approved these changes
Oct 8, 2021
bharanic-dev
pushed a commit
to bharanic-dev/pulsar
that referenced
this pull request
Mar 18, 2022
…mand. (apache#12301) ## Motivation now apache#11357 has merged, apache#11357 use `SUCCESS` command handle tcClientConnectRequest, This is not conducive to later expansion. So add a individual response for `CommandTcClientConnectRequest` ## implement add command ``` message CommandTcClientConnectResponse { required uint64 request_id = 1; optional ServerError error = 2; optional string message = 3; } ``` In order to ensure that the new client is compatible with the old broker, I update protocol version to 19. ``` v19 = 19; // Add CommandTcClientConnectRequest and CommandTcClientConnectResponse ``` if broker protocol version > 18 we should send TcClientConnectCommand if broker protocol version <= 18 we don't need to send TcClientConnectCommand
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
now #11357 has merged, #11357 use
SUCCESScommand handle tcClientConnectRequest, This is not conducive to later expansion. So add a individual response forCommandTcClientConnectRequestimplement
add command
In order to ensure that the new client is compatible with the old broker, I update protocol version to 19.
if broker protocol version > 18 we should send TcClientConnectCommand
if broker protocol version <= 18 we don't need to send TcClientConnectCommand
Does this pull request potentially affect one of the following parts:
If yes was chosen, please highlight the changes
Dependencies (does it add or upgrade a dependency): (no)
The public API: (no)
The schema: (no)
The default values of configurations: (no)
The wire protocol: (yes)
The rest endpoints: (no)
The admin cli options: (no)
Anything that affects deployment: (no)