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 04:00:12 UTC
[PR] test(model): deepen LiteTopicSummary ttl and aggregation coverage [rocketmq-dashboard]
yyqdbngt opened a new pull request, #3289:
URL: https://github.com/apache/rocketmq-dashboard/pull/3289
## Summary
Extends the existing `LiteTopicSummaryTest` (4 to 7 tests) to pin down the remaining Lite Topic summary logic.
Added cases:
- `getTTLStatus` is `UNKNOWN` without a last-active time;
- the ACTIVE / EXPIRING_SOON boundary is separated with comfortable margins (0.5x vs 0.83x of the average TTL);
- `getConsumerDensity` returns the consumer/topic fraction (3/6 → 0.5) and zero for unset counts;
- `isEmptyAggregation` is true only when both consumer count and backlog are absent/zero — a present consumer count or backlog makes the aggregation non-empty.
## Why
These computed fields drive the Lite Topic aggregate view (TTL chips and empty-aggregation placeholders); only the EXPIRED-first ordering and one unset-count case were covered before.
## Testing
`mvn -B test -Dtest=LiteTopicSummaryTest` — 7/7 pass; checkstyle (validate) clean.
--
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] test(model): deepen LiteTopicSummary ttl and aggregation coverage [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #3289: test(model): deepen LiteTopicSummary ttl and aggregation coverage
URL: https://github.com/apache/rocketmq-dashboard/pull/3289
--
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