The GitHub Actions job "Misspell Check" on 
rocketmq.git/fix-11304-duplicate-labels has failed.
Run started by GitHub user Calvinizz (triggered by Calvinizz).

Head commit for run:
0f34f10efac70e0089d9b146c74e4fc7ce9925d1 / Calvinizz 
<[email protected]>
[ISSUE #11304] fix(broker): prevent DuplicateLabelsException in Prometheus 
exporter and preserve pop retry lag metrics

The consumer lag gauges are fed by both ConsumerLagCalculator and
LiteConsumerLagCalculator. When both sources report the same
(consumer_group, topic, is_retry, is_system) label set in one
collection cycle, the Prometheus exporter fails the whole scrape
with DuplicateLabelsException and all broker metrics are lost.

- Deduplicate at record time: the three mixed gauges (lag messages,
  lag latency, ready messages) now share a recorded-label-set per
  cycle and record at most one measurement per label set.
- calculateLag now collects all results of a pop group: calculate()
  emits both the normal and the retry result, but the notify callback
  previously completed the future with the first result only via
  future::complete, silently dropping the pop retry lag series.
- Record whatever futures are ready after the 10s wait timeout,
  instead of losing the lag metrics of all other groups.

Co-Authored-By: Claude <[email protected]>

Report URL: https://github.com/apache/rocketmq/actions/runs/37764298432

With regards,
GitHub Actions via GitBox

Reply via email to