rkhachatryan commented on PR #360:
URL: 
https://github.com/apache/flink-connector-kafka/pull/360#issuecomment-7281822903

   Thanks for the reviews!
   I've updated the PR, PTAL.
   
   > would update release note and docs about it
   
   Done.
   
   > Should we consider special handling for use cases were the offset was 
reset bc it was ahead of log end? (i.e. topic recreation / truncation) since in 
these cases reseting to EARLIEST can cause duplicates
   
   Discussed this offline. Both scenarios assume that user has already accepted 
inconsistency:
   - topic recreation is a lossy operation and is done by the user
   - log truncation can only happen when user configures that on the Kafka side
   
   Distinguishing from the other case is not trivial: we need to catch and 
interpret the exception (and sometimes it's not possible) which increases 
complexity and risk.
   
   Also, I think duplicates are usually better than losing records (IIUC that's 
what @MartijnVisser meant).
   So I'd keep the current version; we can follow-up in the future if it proves 
necessary.
   
   
   


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