ramu11 commented on code in PR #23298:
URL: https://github.com/apache/kafka/pull/23298#discussion_r3975192309


##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/StoreChangelogReader.java:
##########
@@ -749,6 +749,10 @@ private int restoreChangelog(final Task task, final 
ChangelogMetadata changelogM
             // markers) so the remaining-records metric reaches exactly zero 
on completion
             recordRestorationProgress(task, changelogMetadata, 0, 
storeMetadata.offset(), changelogMetadata.restoreEndOffset);
 
+            // Catch-up boundary: advertise restoreEndOffset, not the live 
consumer position, which may
+            // already be past records that were buffered and never applied 
(KAFKA-14302).

Review Comment:
   Thanks for the suggestion. Updated the comment to use the file's “end 
offset” terminology and “advance to”, and removed the repeated KAFKA-14302 
reference.
   



-- 
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]

Reply via email to