Frun1na opened a new pull request, #4877: URL: https://github.com/apache/rocketmq-dashboard/pull/4877
## Which Issue(s) This PR Fixes - Fixes PENDING_BACKFILL ## Brief Description `enrichLiveStats` gave every enrichment future its own three-second budget. When a broker hangs, a listing of N consumer groups waited up to N×3s (measured 9.1s for three groups) before returning rows. The fix gives the whole batch one absolute deadline — `startedNanos` plus the existing timeout, each future awaited for the remaining time only, and the remaining futures cancelled once the deadline passes. This matches the approach `InstanceResourceCountRunner` already uses; late results stay unused and the next listing refreshes the stats. ## How Did You Test This Change? New test in `RocketMQMetadataProviderTest`: three groups whose connection lookups hang on a sleeping admin stub; the listing must return within 6s. On the base revision it fails after 9117ms (3 × 3s per-future budgets); with the fix it returns in 3.16s: ``` $ mvn -B -ntp test -Dtest='RocketMQMetadataProviderTest' [INFO] Tests run: 45, Failures: 0, Errors: 0, Skipped: 0 [INFO] BUILD SUCCESS ``` -- 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]
