You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "yyqdbngt (via GitHub)" <gi...@apache.org> on 2026/09/05 22:38:34 UTC

[PR] [ISSUE-3836][test] Deepen LiteTopicQuotaTest with usage ratios and near-limit threshold [rocketmq-dashboard]

yyqdbngt opened a new pull request, #3836:
URL: https://github.com/apache/rocketmq-dashboard/pull/3836

   ### Motivation
   
   The existing `LiteTopicQuotaTest` covers exceeded/remaining semantics and zero-rate guards, but the computed usage ratios (topic and session) and the `isNearQuotaLimit` threshold helper were untested.
   
   ### Changes
   
   - `usageRateShouldComputeTopicRatio`: 4 of 10 topics yields 0.4 usage.
   - `sessionUsageRateShouldComputeRatio`: 4 of 10 sessions yields 0.4 session usage.
   - `nearQuotaLimitShouldCompareAgainstTheThreshold`: an 80% usage trips a 0.7 threshold but not a 0.9 one, and an unconfigured quota never reports near-limit.
   
   ### Verification
   
   ```
   mvn -B test -Dtest=LiteTopicQuotaTest
   [INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0
   [INFO] BUILD SUCCESS
   ```


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ISSUE-3836][test] Deepen LiteTopicQuotaTest with usage ratios and near-limit threshold [rocketmq-dashboard]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #3836: [ISSUE-3836][test] Deepen LiteTopicQuotaTest with usage ratios and near-limit threshold
URL: https://github.com/apache/rocketmq-dashboard/pull/3836


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org