nicktelford commented on code in PR #22683:
URL: https://github.com/apache/kafka/pull/22683#discussion_r3491082753
##########
streams/src/main/java/org/apache/kafka/streams/state/internals/RocksDBStore.java:
##########
@@ -1479,7 +1523,21 @@ public Options getOptions() {
@Override
public Position getPosition() {
- return position;
+ synchronized (position) {
+ return
position.copy().merge(dbAccessor.uncommittedPositionDeltas());
+ }
+ }
+
+ // Visible for testing. Returns a snapshot of the committed Position only
(no pending writes).
+ Position committedPositionForTest() {
Review Comment:
Done in f4bddd0
--
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]