You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "iloveeyjafjalla (via GitHub)" <gi...@apache.org> on 2026/10/18 11:47:32 UTC
[I] [Bug] A failed alert-runtime read is shown as "Not collected" on every rule [rocketmq-dashboard]
iloveeyjafjalla opened a new issue, #6940:
URL: https://github.com/apache/rocketmq-dashboard/issues/6940
## Summary
When the alert-rules page cannot read the rules' runtime state, every rule's 运行态 cell reads 未采集 ("Not collected") — a claim about each rule's collection being switched off — although what failed was the read.
## Why
- The runtime read discards its error: `void listAlertRuleRuntime(domain).then(setRuntime).catch(() => undefined)` (`web/src/pages/ops/alerts.tsx:395-397`).
- The cell renders `alerts.notCollected` whenever the rule has no runtime row (`:749-751`), and a failed read leaves no rows, so the failure and a genuinely empty runtime state are indistinguishable.
- On a *refresh* that fails, the previous array is kept, so the column can instead keep showing firing/pending states that may no longer hold.
## Impact
A transient failure of `/api/(business|cluster)-alert-rules/runtime` makes the whole table claim that no rule is collecting, with no error message and no retry, while the rules list itself loaded fine.
## Reproduction
`web/src/pages/ops/__tests__/AlertsPage.test.tsx` → `does not present a failed runtime read as a rule that was never collected` rejects `listAlertRuleRuntime` while the rule list resolves:
```
expect(screen.queryByText('未采集')).not.toBeInTheDocument() → found 未采集
```
## Expected
A failed read is shown as unknown ("-" with the reason), not as "not collected", and stale values are dropped.
--
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: commits-unsubscribe@rocketmq.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] A failed alert-runtime read is shown as "Not collected" on every rule [rocketmq-dashboard]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6940:
URL: https://github.com/apache/rocketmq-dashboard/issues/6940#issuecomment-6405401474
This issue has been automatically closed because there has been no activity for 7 days. If you believe this issue is still relevant, please reopen it with updated information.
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] A failed alert-runtime read is shown as "Not collected" on every rule [rocketmq-dashboard]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #6940: [Bug] A failed alert-runtime read is shown as "Not collected" on every rule
URL: https://github.com/apache/rocketmq-dashboard/issues/6940
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org