You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by GitBox <gi...@apache.org> on 2026/10/09 10:37:02 UTC

[GH] (rocketmq/fix/store-stats-service-empty-lists): Workflow run "Misspell Check" failed!

The GitHub Actions job "Misspell Check" on rocketmq.git/fix/store-stats-service-empty-lists has failed.
Run started by GitHub user zjncs (triggered by zjncs).

Head commit for run:
afb943b6c82ced2d3e7e8fa6f02ed77bc2bdb722 / zjncs <18...@163.com>
[ISSUE #S3] Return an empty TPS when no samples have been collected yet

The TPS snapshot lists are only filled by the sampling thread after
StoreStatsService.start(), but the getters used by toString() and
getRuntimeInfo() call LinkedList.getLast() unconditionally. Before the
first sample (fresh start, or a store constructed but not started in
tools/tests) every broker-runtime-info call therefore fails with
NoSuchElementException. Check isEmpty() first and return the empty
value.

Signed-off-by: zjncs <18...@163.com>

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

With regards,
GitHub Actions via GitBox