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 16:07:07 UTC

[PR] test: cover cluster-scope query, entity mapping, purge and round trip in MybatisPlusMetricSnapshotRepository [rocketmq-dashboard]

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

   ### Summary
   
   `MybatisPlusMetricSnapshotRepository` persists recent metric samples with hashed labels, queries by scope and purges rows older than a cutoff. The suite covered the transactional annotation and the null-cluster query only.
   
   ### Changes
   
   - A cluster-scoped query adds a `cluster_id =` predicate instead of `IS NULL`
   - `saveAll` inserts entities with a 64-hex labels hash, JSON labels, value and availability
   - `deleteBefore` returns the deleted row count from the age-based purge
   - `findRecent` round-trips a stored entity back to a `MetricSample` with parsed labels
   
   ### Testing
   
   `mvn test -Dtest=MybatisPlusMetricSnapshotRepositoryTest` passes: 6 tests, 0 failures (up from 2).


-- 
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: cover cluster-scope query, entity mapping, purge and round trip in MybatisPlusMetricSnapshotRepository [rocketmq-dashboard]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #3449: test: cover cluster-scope query, entity mapping, purge and round trip in MybatisPlusMetricSnapshotRepository
URL: https://github.com/apache/rocketmq-dashboard/pull/3449


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