Aias00 opened a new issue, #895:
URL: https://github.com/apache/rocketmq-dashboard/issues/895

   ### Problem
   `RocketMQClusterProvider` parses broker runtime TPS strings with `split(" 
")`. RocketMQ runtime stats such as `putTps` / `getTransferedTps` are 
whitespace-separated values, and extra leading or repeated whitespace makes the 
first token empty. In that case the provider falls back to `0`, so Broker TPS 
can be displayed as zero even when runtime stats contain a valid value.
   
   ### Code evidence
   - 
`server/src/main/java/org/apache/rocketmq/studio/rocketmq/RocketMQClusterProvider.java`:
 `parseFirstTpsValue` uses `tpsStr.split(" ")` and parses `parts[0]`.
   
   ### Impact
   Cluster/Broker overview can show incorrect inbound/outbound TPS, which 
weakens the Studio control plane observability view.
   
   ### Expected behavior
   TPS parsing should trim the runtime stat and split by one or more whitespace 
characters before parsing the first average value.
   
   ### Scope
   RocketMQ Studio track 1 / Control Plane cluster observability.


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