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

   ### Motivation
   
   `ConsumerConnection.computeMinVersion` kept its `Integer.MAX_VALUE` sentinel 
when the connection set was empty, so `mqadmin consumerProgress` printed 
`HighestVersion (2147483647)` for idle consumer groups whose clients had all 
disconnected.
   
   ### Modifications
   
   Return 0 for an empty set instead.
   
   ### Verification
   
   Fail-before (new test, run against the unpatched code):
   
   ```
   ConsumerConnectionTest#testComputeMinVersionWithNoConnection
   java.lang.AssertionError: expected: 0 but was: 2147483647
   ```
   
   Pass-after:
   
   ```
   Tests run: 3, Failures: 0, Errors: 0, Skipped: 0 -- ConsumerConnectionTest
   ```
   


-- 
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