Skip to content

[ISSUE #9422] Change default client instance name#9494

Closed
totalo wants to merge 13 commits intoapache:developfrom
totalo:patch_20250622
Closed

[ISSUE #9422] Change default client instance name#9494
totalo wants to merge 13 commits intoapache:developfrom
totalo:patch_20250622

Conversation

@totalo
Copy link
Copy Markdown
Member

@totalo totalo commented Jun 21, 2025

Which Issue(s) This PR Fixes

Fixes #9422

Brief Description

How Did You Test This Change?

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 21, 2025

Codecov Report

Attention: Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.

Project coverage is 48.03%. Comparing base (8abc0a1) to head (7da1f40).
Report is 19 commits behind head on develop.

Files with missing lines Patch % Lines
...rg/apache/rocketmq/test/util/MQAdminTestUtils.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #9494      +/-   ##
=============================================
- Coverage      48.05%   48.03%   -0.03%     
- Complexity     12001    12043      +42     
=============================================
  Files           1308     1313       +5     
  Lines          92251    92763     +512     
  Branches       11808    11862      +54     
=============================================
+ Hits           44334    44559     +225     
- Misses         42430    42686     +256     
- Partials        5487     5518      +31     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

public void changeInstanceNameToPIDWithGroupInfo(String groupInfo) {
if (this.instanceName.equals("DEFAULT")) {
this.instanceName = UtilAll.getPid() + "#" + System.nanoTime();
this.instanceName = UtilAll.getPid() + "#" + groupInfo;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Launching in a container environment would cause duplication here

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Got it.

@lizhimins lizhimins changed the title [#ISSUE 9422]: change defaultInstanceName to pid + groupName [ISSUE #9422] Change default client instance name Jun 28, 2025
@totalo totalo marked this pull request as draft June 28, 2025 16:11
@totalo totalo closed this Oct 6, 2025
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.

[Feature] It shouldn't start successfully when the same consumer group consumes different topics.

3 participants