123123213weqw opened a new pull request, #1978: URL: https://github.com/apache/rocketmq-dashboard/pull/1978
## What is the purpose of the change In the Tencent RocketMQ message trace, `toConsumeTraceStatus` mapped every non-2 status to `"failed"`, so an in-flight message (status 0/1) showed a failed consume step. The sibling `toDeliveryStatus` correctly maps 0/1 to `pending`, and the frontend `TraceNode.status` union only accepts `'error' | 'wait' | 'process' | 'finish'` — `"failed"` is not even a legal value, so the step indicator was ignored. ## Brief changelog - Map in-flight consume status (0/1) to `"process"`, consumed (2) to `"finish"`, and anything else to `"error"`, consistent with `toDeliveryStatus` and the frontend status union. - Add a test asserting an in-flight consume node reads `"process"` and its delivery status reads `pending`. ## Verifying this change - `mvn -q -Dtest=TencentInstanceProviderTest test` - `mvn -q test` (1056/1056) - `git diff --check` -- 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]
