unbridled-41 opened a new pull request, #6001: URL: https://github.com/apache/rocketmq-dashboard/pull/6001
### Which Issue(s) This PR Fixes Fixes #6000 ### Problem / Evidence `GROUP_EXPORT_COLUMNS` mapped 'Online Instances' through `formatOnlineInstances(..., 'unknown')` but wrote 'Total Lag' raw: ``` consumerService: renders an unavailable total lag as unknown instead of the sentinel AssertionError: expected "...\n" to contain '"...","5","unknown"' ``` The server exporter writes `unknown` for the same sentinel (MetadataService.lagText), and the page renders 不可用. ### Root cause / Fix Only one of the two sentinel columns was converted when the export guard was added. Map the lag through `isLagAvailable`. ### Priority and scoring **PRIORITY 48** - impact 14/40 (a fabricated number in a spreadsheet an operator hands on), blast radius 8/20, reproducibility 20/20, maintenance value 6/20. **FIX_CONFIDENCE 85**. ### Tests `cd web && npx vitest run src/services/consumerService.test.ts` -> `Tests 22 passed`; the new case fails before the change and passes after it; `npx eslint` and `npx tsc -b` are clean. ### Risk A confirmed 0 remains numeric; only the -1 sentinel changes. -- 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]
