You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "chunhai1127 (via GitHub)" <gi...@apache.org> on 2026/07/29 09:43:52 UTC
[I] Topic list page shows nothing when topics' messageType is UNSPECIFIED (4.x clusters) [rocketmq-dashboard]
chunhai1127 opened a new issue, #669:
URL: https://github.com/apache/rocketmq-dashboard/issues/669
**BUG REPORT**
1. Please describe the issue you observed:
- What did you do (The steps to reproduce)?
1. Deploy rocketmq-dashboard 2.1.0 (docker image `apacherocketmq/rocketmq-dashboard:2.1.0`).
2. Connect it to a RocketMQ 4.x cluster (or any cluster whose topics report `UNSPECIFIED` message type, e.g. 5.x topics created without message type attributes).
3. Open the Topic page.
- What did you expect to see?
The topic list renders all topics of the cluster.
- What did you see instead?
The topic table is empty, while the backend API `/topic/list.queryTopicType` returns the full data (`{status:0, data:{topicNameList, messageTypeList}}`). Ticking the `UNSPECIFIED` checkbox in the type filter makes all topics appear immediately.
2. Please tell us about your environment:
- rocketmq-dashboard 2.1.0 (docker image `apacherocketmq/rocketmq-dashboard:2.1.0`, deployed on Kubernetes)
- RocketMQ 4.x cluster (all topics have messageType `UNSPECIFIED` / `RETRY` / `DLQ` / `SYSTEM`)
- The same problem exists on the current master branch (`frontend-new/src/pages/Topic/topic.jsx` is identical)
3. Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc):
Root cause: in `frontend-new/src/pages/Topic/topic.jsx`, the `rmqVersion` state is hardcoded to `true` and `setRmqVersion` is never called anywhere, so the fallback branch for 4.x clusters is dead code:
```js
const [rmqVersion, setRmqVersion] = useState(true); // setRmqVersion is never called
const filterByType = (topic, type) => {
...
if (filterNormal && type.includes("NORMAL")) return true; // the only way out with the default filter
if (!rmqVersion && filterNormal && type.includes("UNSPECIFIED")) return true; // dead code: rmqVersion is always true
...
};
```
By default only the `NORMAL` checkbox is ticked, so every topic whose messageType is `UNSPECIFIED` (i.e. all normal topics on 4.x clusters) is filtered out and the page shows nothing.
Suggested fix: treat `UNSPECIFIED` as `NORMAL` in `filterByType`:
```diff
- if (filterNormal && type.includes("NORMAL")) return true;
- if (!rmqVersion && filterNormal && type.includes("UNSPECIFIED")) return true;
+ // UNSPECIFIED is treated as NORMAL (topics on 4.x clusters or without message type attributes)
+ if (filterNormal && (type.includes("NORMAL") || type.includes("UNSPECIFIED"))) return true;
```
I will submit a PR to fix this.
--
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] Topic list page shows nothing when topics' messageType is UNSPECIFIED (4.x clusters) [rocketmq-dashboard]
Posted by "yyqdbngt (via GitHub)" <gi...@apache.org>.
yyqdbngt commented on issue #669:
URL: https://github.com/apache/rocketmq-dashboard/issues/669#issuecomment-5143007205
I'd like to work on this issue. I'll fix the topic list filter so that topics whose messageType is UNSPECIFIED (4.x clusters) are shown as normal topics by default.
--
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] Topic list page shows nothing when topics' messageType is UNSPECIFIED (4.x clusters) [rocketmq-dashboard]
Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #669:
URL: https://github.com/apache/rocketmq-dashboard/issues/669#issuecomment-5192877633
**Issue Evaluation**
Category: `bug` | Status: **Confirmed**
Excellent analysis. The root cause is clear: `rmqVersion` is hardcoded to `true` with `setRmqVersion` never called, making the `UNSPECIFIED` fallback branch dead code. This causes all 4.x cluster topics (which report `UNSPECIFIED` message type) to be filtered out by default.
**Impact:** Dashboard 2.1.0 connected to 4.x clusters shows an empty topic list — effectively unusable for topic management.
**Severity:** High — core functionality broken for 4.x cluster users.
**Suggested Fix:** Your proposed fix (treating `UNSPECIFIED` as `NORMAL` in `filterByType`) is correct and minimal. Looking forward to the PR.
---
*Automated evaluation by RockteMQ-AI*
--
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] Topic list page shows nothing when topics' messageType is UNSPECIFIED (4.x clusters) [rocketmq-dashboard]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #669: Topic list page shows nothing when topics' messageType is UNSPECIFIED (4.x clusters)
URL: https://github.com/apache/rocketmq-dashboard/issues/669
--
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] Topic list page shows nothing when topics' messageType is UNSPECIFIED (4.x clusters) [rocketmq-dashboard]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #669:
URL: https://github.com/apache/rocketmq-dashboard/issues/669#issuecomment-5274319251
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