mjsax commented on code in PR #14570: URL: https://github.com/apache/kafka/pull/14570#discussion_r1396755678
########## streams/src/main/java/org/apache/kafka/streams/state/internals/KeyValueToTimestampedKeyValueByteStoreAdapter.java: ########## @@ -127,9 +136,25 @@ public <R> QueryResult<R> query( final QueryConfig config) { + final long start = config.isCollectExecutionInfo() ? System.nanoTime() : -1L; - final QueryResult<R> result = store.query(query, positionBound, config); + QueryResult<R> result = store.query(query, positionBound, config); + + if (result.isSuccess()) { + if (query instanceof KeyQuery || query instanceof TimestampedKeyQuery) { Review Comment: We should add a comment above this line: ``` // this adapter always needs to return a `value-with-timestamp` result to hold up its contract // thus, we need to add the dummy `-1` timestamp even for `KeyQuery` and `RangeQuery` ``` -- 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