vvcephei commented on code in PR #15219:
URL: https://github.com/apache/kafka/pull/15219#discussion_r1457894664
##########
streams/src/main/java/org/apache/kafka/streams/state/internals/StoreQueryUtils.java:
##########
@@ -146,7 +146,7 @@ public static <R> QueryResult<R> handleBasicQueries(
"Handled in " + store.getClass() + " in " + (System.nanoTime()
- start) + "ns"
);
}
- result.setPosition(position);
+ result.setPosition(position.copy());
Review Comment:
Better yet, we could make the copy at the beginning of this method or even
on the caller side.
--
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]