unbridled-41 opened a new issue, #5953:
URL: https://github.com/apache/rocketmq-dashboard/issues/5953

   ### Studio Version
   branch: `rocketmq-studio` @ `7e7aa344` (the revision verified; the branch is 
based on it)
   deployed as: not required to reproduce
   
   ### Runtime Environment
   
   Reproduced with the frontend tests (`cd web && npx vitest run 
src/pages/instance/__tests__/MessagePageAsyncState.test.tsx`).
   
   ### Connected RocketMQ Cluster
   
   Any instance whose trace provider is not configured or fails; the same 
applies while the request is still in flight.
   
   ### Describe the Bug
   
   The Trace and Verify tabs render the same payload - `handleModalTabChange` 
fetches it on entering either - but only the Trace pane renders that request's 
state:
   
   ```tsx
   // trace tab
   {traceLoading ? <Text>{t('messagePage.loadingTrace')}</Text>
     : traceError ? <Alert type="warning" message={traceError} />
     : traceData?.nodes?.length ? ... : 
<Text>{t('messagePage.noTraceData')}</Text>}
   
   // consumer (Verify) tab
   <Table dataSource={traceData?.consumerStatus?.map(...) || []} ... />
   ```
   
   A failed or pending trace request therefore renders antd's empty-table 
placeholder on the Verify pane, which reads as "no consumer group consumed this 
message" - the opposite of the truth - and the only way to see the error is to 
switch tabs. The change that added the fetch for this tab (#4910) did not bring 
the request state along.
   
   ### Steps to Reproduce
   
   1. Point Studio at an instance whose trace provider is unavailable.
   2. Open a message's detail, select the 验证 tab.
   3. The consumer table is empty with no error and no loading state.
   
   ### What Did You Expect to See?
   
   The same loading/error presentation the Trace tab shows for the same request.
   
   ### What Did You See Instead?
   
   An empty table that looks like a measured "no consumers".
   
   ### Evidence
   
   - `web/src/pages/instance/message.tsx` (the two tab children, 
`handleModalTabChange`).
   - `cd web && npx vitest run 
src/pages/instance/__tests__/MessagePageAsyncState.test.tsx -t 'verify tab'` - 
fails before the fix.
   
   ### Impact
   
   The delivery-verification view reports "nothing consumed this message" when 
the data simply could not be loaded.
   
   ### Acceptance Criteria
   
   - The Verify pane renders the same loading text and error alert as the Trace 
pane, with a regression test.
   
   **Corresponding PR:** #ISSUEPR#
   


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