Skip to content
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

Merged
merged 1 commit into from
Sep 26, 2022

Conversation

drpmma
Copy link
Contributor

@drpmma drpmma commented Sep 22, 2022

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

@coveralls
Copy link

coveralls commented Sep 22, 2022

Coverage Status

Coverage increased (+0.03%) to 52.072% when pulling 917bc93 on drpmma:feature/bname into c88686f on apache:4.9.x.

@@ -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());
Copy link
Contributor

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());
Copy link
Contributor

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants