RockteMQ-AI commented on issue #11321: URL: https://github.com/apache/rocketmq/issues/11321#issuecomment-6095532568
**Fix Spec — Issue #11321** **Root Cause:** In `StatisticsBrief.getTPValue()`, the loop `for (int i = counts.length - 1; i > 0; i--)` skips bucket 0 entirely. Bucket 0 represents values at or below the minimum tracked value. **Fix:** Change loop condition from `i > 0` to `i >= 0` (line 115). **Files Changed:** - `common/src/main/java/org/apache/rocketmq/common/statistics/StatisticsBrief.java` (1 line changed) **Branch:** `fix/issue-11321` Reply `/approve` to proceed with PR generation, `/revise <feedback>` to request changes, or `/reject` to decline. --- *Automated fix proposal by github-manager-bot* -- 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]
