vvcephei commented on a change in pull request #11582: URL: https://github.com/apache/kafka/pull/11582#discussion_r771741301
########## File path: streams/src/main/java/org/apache/kafka/streams/state/internals/MeteredKeyValueStore.java ########## @@ -253,12 +262,17 @@ public boolean setFlushListener(final CacheFlushListener<K, V> listener, rawRangeQuery = RangeQuery.withNoBounds(); } final QueryResult<KeyValueIterator<Bytes, byte[]>> rawResult = - wrapped().query(rawRangeQuery, positionBound, collectExecutionInfo); + wrapped().query(rawRangeQuery, positionBound, collectExecutionInfo); if (rawResult.isSuccess()) { final KeyValueIterator<Bytes, byte[]> iterator = rawResult.getResult(); final KeyValueIterator<K, V> resultIterator = new MeteredKeyValueTimestampedIterator( - iterator, getSensor, getValueDeserializer()); - final QueryResult<KeyValueIterator<K, V>> typedQueryResult = QueryResult.forResult(resultIterator); + iterator, + getSensor, + getValueDeserializer() + ); + final QueryResult<KeyValueIterator<K, V>> typedQueryResult = rawResult.swapResult( + resultIterator Review comment: Probably autoformatted because the line was too long. -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org