btlqql opened a new issue, #2535: URL: https://github.com/apache/rocketmq-dashboard/issues/2535
## Problem `LiteTopicQuota` treats an unset maximum as unavailable in its rate calculations, but `isQuotaExceeded()` considers `maxTopicCount = 0` exceeded for every non-negative current count. Negative limits also produce negative usage rates. This exposes contradictory quota state through the model's computed JSON properties. Location: `server/src/main/java/org/apache/rocketmq/studio/model/LiteTopicQuota.java`. ## Expected behavior Treat null and non-positive maxima consistently as unavailable: usage rates and remaining quota stay zero, while the quota is not reported as exceeded. Positive maxima keep the existing at-limit and over-limit behavior. ## Verification Cover null, zero, negative, below-limit, at-limit, and over-limit inputs in the focused model tests. -- 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]
