RockteMQ-AI commented on issue #2502:
URL: 
https://github.com/apache/rocketmq-dashboard/issues/2502#issuecomment-5370414166

   Hi @123123213weqw, thanks for reporting this!
   
   I've analyzed this issue against the codebase and can confirm this appears 
to be a **real bug**.
   
   **Root Cause:** `RocketMQMessageProvider.java` returns `"failed"` for failed 
produce/consume trace nodes, but the frontend `TraceNode.status` type and Ant 
Design Steps only accept `"error"` (not `"failed"`) as the failed state.
   **Affected Files:** 
server/src/main/java/org/apache/rocketmq/studio/provider/apache/RocketMQMessageProvider.java,
 web/src/pages/instance/message.tsx, web/src/api/message.ts
   
   **Analysis:** In `buildProduceNode` (line 417) and `buildConsumeNode` (line 
432), the backend sets `.status(parseBoolean(...) ? "finish" : "failed")`. The 
UI type in `web/src/api/message.ts:21` declares `status: 'error' | 'wait' | 
'process' | 'finish'`, so the unrecognized `"failed"` value prevents Ant Design 
Steps from rendering the red error icon. The Tencent provider already maps 
failures to `"error"` correctly. The transaction node is unaffected because it 
is hardcoded to `"finish"`.
   
   I'll prepare a fix spec and work on a PR. The community is welcome to 
provide feedback on the approach before implementation.
   
   ---
   🤖 *Automated issue analysis by github-manager*


-- 
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]

Reply via email to