qingli9374 opened a new pull request, #11636:
URL: https://github.com/apache/rocketmq/pull/11636

   ### What is changed
   
   - Change the asynchronous POP lag callback result from one 
`CalculateLagResult` to a list.
   - Record every result produced by `ConsumerLagCalculator#calculate` after 
the asynchronous callback completes.
   - Add a regression test that verifies both the normal POP lag result and the 
retry-topic lag result reach the caller.
   
   ### Why
   
   For a POP consumer group, `ConsumerLagCalculator#calculate` emits two 
results: one for the original topic and one for the retry topic. The 
asynchronous notification path used `CompletableFuture#complete`, which keeps 
only the first value, so the retry lag result was silently dropped.
   
   This addresses the independently reproducible asynchronous result-loss path 
identified while investigating #11304. It does not claim that the original 
5.3.3 `DuplicateLabelsException` still reproduces on the current develop branch.
   
   ### Verification
   
   ```bash
   mvn -pl broker -am \
     -Dtest=ConsumerLagCalculatorTest \
     -DfailIfNoTests=false \
     -Djacoco.skip=true test
   ```
   
   Result: `Tests run: 1, Failures: 0, Errors: 0, Skipped: 0`.
   
   The broker module also completed with Checkstyle `0` violations and SpotBugs 
`0` findings.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to