cadonna commented on a change in pull request #10765:
URL: https://github.com/apache/kafka/pull/10765#discussion_r640686291



##########
File path: 
streams/src/test/java/org/apache/kafka/streams/state/internals/MeteredWindowStoreTest.java
##########
@@ -272,21 +230,8 @@ public void shouldRecordRestoreLatencyOnInit() {
         expectLastCall();
         replay(innerStoreMock);
         store.init((StateStoreContext) context, store);
-        final Map<MetricName, ? extends Metric> metrics = 
context.metrics().metrics();
-        if (StreamsConfig.METRICS_0100_TO_24.equals(builtInMetricsVersion)) {
-            assertEquals(1.0, getMetricByNameFilterByTags(
-                metrics,
-                "restore-total",
-                storeLevelGroup,
-                singletonMap(STORE_TYPE + "-state-id", STORE_NAME)
-            ).metricValue());
-            assertEquals(1.0, getMetricByNameFilterByTags(
-                metrics,
-                "restore-total",
-                storeLevelGroup,
-                singletonMap(STORE_TYPE + "-state-id", ROLLUP_VALUE)
-            ).metricValue());
-        }
+
+        verify(innerStoreMock);

Review comment:
       Good that you mention that! I checked the metered state store tests and 
found some testing holes.




-- 
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:
[email protected]


Reply via email to