-
Notifications
You must be signed in to change notification settings - Fork 11.6k
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
[ISSUE #3905] Support bname in protocol for 4.9.x client #5161
Conversation
e34df5e
to
7be7ee5
Compare
@@ -173,6 +173,7 @@ private PushReplyResult pushReplyMessage(final ChannelHandlerContext ctx, | |||
replyMessageRequestHeader.setProperties(requestHeader.getProperties()); | |||
replyMessageRequestHeader.setReconsumeTimes(requestHeader.getReconsumeTimes()); | |||
replyMessageRequestHeader.setUnitMode(requestHeader.isUnitMode()); | |||
replyMessageRequestHeader.setBname(requestHeader.getBname()); |
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.
bname
is arcane and inconsistent with the existing field naming convention. Why not use brokerName?
@@ -173,6 +173,7 @@ private PushReplyResult pushReplyMessage(final ChannelHandlerContext ctx, | |||
replyMessageRequestHeader.setProperties(requestHeader.getProperties()); | |||
replyMessageRequestHeader.setReconsumeTimes(requestHeader.getReconsumeTimes()); | |||
replyMessageRequestHeader.setUnitMode(requestHeader.isUnitMode()); | |||
replyMessageRequestHeader.setBname(requestHeader.getBname()); |
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.
bname
is arcane and inconsistent with the existing field naming convention. Why not use brokerName?
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.
+1
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.
It's backport from 5.0 branch. The bname
field is introduced by b6ff649.
...on/src/main/java/org/apache/rocketmq/common/protocol/header/EndTransactionRequestHeader.java
Show resolved
Hide resolved
...main/java/org/apache/rocketmq/common/protocol/header/CheckTransactionStateRequestHeader.java
Show resolved
Hide resolved
7be7ee5
to
917bc93
Compare
What is the purpose of the change
Backport 5.0 bname protocol for 4.9.x client
Brief changelog
See this issue for more information