You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "zjncs (via GitHub)" <gi...@apache.org> on 2026/09/11 07:12:29 UTC
[PR] fix(tools): stop accumulating retryQueueNums across masters in exportMetadata [rocketmq]
zjncs opened a new pull request, #11135:
URL: https://github.com/apache/rocketmq/pull/11135
### Motivation
`mqadmin exportMetadata` summed `retryQueueNums` of the same subscription group over every master of the cluster, the way topic queue numbers are totaled. But a subscription group config is cluster-wide: a group exported from an N-broker cluster came out with N times its real `retryQueueNums`, and re-importing that metadata inflated every group's retry queues.
### Modifications
Keep the first seen config per group instead of summing, matching the cluster-wide semantics of subscription group config.
### Verification
Fail-before (new test, run against the unpatched code):
```
ExportMetadataCommandTest#testSubscriptionGroupRetryQueueNumsNotAccumulatedAcrossBrokers
java.lang.AssertionError: retryQueueNums must not be summed across the two masters expected:<1> but was:<2>
```
Pass-after:
```
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 -- ExportMetadataCommandTest
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(tools): stop accumulating retryQueueNums across masters in exportMetadata [rocketmq]
Posted by "zjncs (via GitHub) via commits" <co...@rocketmq.apache.org>.
zjncs closed pull request #11135: fix(tools): stop accumulating retryQueueNums across masters in exportMetadata
URL: https://github.com/apache/rocketmq/pull/11135
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org