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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
