kumarpritam863 commented on issue #16282:
URL: https://github.com/apache/iceberg/issues/16282#issuecomment-5081883420

   The committed offsets come from the Iceberg latest created snapshot:
   `  private Map<Integer, Long> lastCommittedOffsetsForTable(Table table, 
String branch) {
       Snapshot snapshot = latestSnapshot(table, branch);
   
       if (snapshot == null) {
         return Map.of();
       }
   
       Iterable<Snapshot> branchAncestry =
           SnapshotUtil.ancestorsOf(snapshot.snapshotId(), table::snapshot);
       return lastCommittedOffsets(branchAncestry);
     }`
   
   Even if the controlTopic goes backward, it will be ignored as it will be 
less than what is stored in the table.
   
   Any control topic only contributes in any of the snapshot only if it's 
offset is strictly greater than what already committed in the last created 
snapshot.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to