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 #7699] Add namespace v2 in client #7700

Merged
merged 10 commits into from
Jan 12, 2024

Conversation

drpmma
Copy link
Contributor

@drpmma drpmma commented Dec 26, 2023

Which Issue(s) This PR Fixes

Fixes #7699

Brief Description

Add namespace v2 in client

How Did You Test This Change?

@drpmma drpmma force-pushed the feature/namespace-v2 branch from dfb26ae to 710d3bc Compare December 29, 2023 07:21
@codecov-commenter
Copy link

Codecov Report

Attention: 114 lines in your changes are missing coverage. Please review.

Comparison is base (71a7a65) 43.17% compared to head (710d3bc) 43.15%.
Report is 15 commits behind head on develop.

Files Patch % Lines
...apache/rocketmq/remoting/rpc/RpcRequestHeader.java 27.27% 16 Missing ⚠️
...ocketmq/client/consumer/DefaultMQPushConsumer.java 48.14% 14 Missing ⚠️
...he/rocketmq/client/producer/DefaultMQProducer.java 43.75% 9 Missing ⚠️
...g/apache/rocketmq/client/impl/MQClientAPIImpl.java 44.44% 5 Missing ⚠️
...ocketmq/broker/processor/AdminBrokerProcessor.java 0.00% 4 Missing ⚠️
...ocketmq/client/producer/TransactionMQProducer.java 33.33% 4 Missing ⚠️
...ng/protocol/header/SendMessageRequestHeaderV2.java 55.55% 4 Missing ⚠️
...g/apache/rocketmq/remoting/rpc/RequestBuilder.java 0.00% 4 Missing ⚠️
...etmq/broker/processor/ConsumerManageProcessor.java 0.00% 2 Missing ⚠️
...mq/broker/topic/TopicQueueMappingCleanService.java 0.00% 2 Missing ⚠️
... and 44 more
Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #7700      +/-   ##
=============================================
- Coverage      43.17%   43.15%   -0.02%     
- Complexity      9797     9820      +23     
=============================================
  Files           1165     1167       +2     
  Lines          84477    84595     +118     
  Branches       10966    10984      +18     
=============================================
+ Hits           36474    36509      +35     
- Misses         43473    43551      +78     
- Partials        4530     4535       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -1377,7 +1377,7 @@ public CompletableFuture<PullResult> pullMessageFromSpecificBrokerAsync(String b
requestHeader.setSubVersion(System.currentTimeMillis());
requestHeader.setMaxMsgBytes(Integer.MAX_VALUE);
requestHeader.setExpressionType(ExpressionType.TAG);
requestHeader.setBname(brokerName);
Copy link
Contributor

Choose a reason for hiding this comment

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

This shall result in a backward compatible issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only the function signature has been modified here, without changes to the internal fields. The field name remains 'bname', so there should be no compatibility issues.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See

public String getBrokerName() {
return bname;
}
public void setBrokerName(String brokerName) {
this.bname = brokerName;
}

Copy link
Contributor

@guyinyou guyinyou left a comment

Choose a reason for hiding this comment

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

lgtm

@drpmma drpmma merged commit b1d8d30 into apache:develop Jan 12, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement] Add namespace v2 in client
5 participants