gesterzhou commented on a change in pull request #6430: URL: https://github.com/apache/geode/pull/6430#discussion_r641742264
########## File path: geode-core/src/integrationTest/java/org/apache/geode/internal/cache/PartitionedRegionStatsJUnitTest.java ########## @@ -477,4 +485,139 @@ private long getMemBytes(PartitionedRegion pr) { return bytes; } + + @Test + public void incBucketClearCountIncrementsClears() { + String regionName = "testStats"; + int localMaxMemory = 100; + PartitionedRegion pr = createPR(regionName + 1, localMaxMemory, 0); + + pr.getPrStats().incBucketClearCount(); + + assertThat(pr.getPrStats().getStats().getLong(bucketClearsId)).isEqualTo(1L); Review comment: need to also verify partitionedRegion.getCachePerfStats().getClearCount()) is still 0. -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org