tzulitai opened a new pull request, #58:
URL: https://github.com/apache/flink-connector-kafka/pull/58

   Prior to this fix, if the offsets to commit for a given checkpoint is empty, 
which can be the case if no starting offsets were retrieved from Kafka yet, 
then on checkpoint completion the cache is not properly evicted up to the given 
checkpoint.
   
   This change fixes this such that in notifyOnCheckpointComplete, we shortcut 
the method execution to not need to try to commit the offsets since its empty 
anyways, and always remember to evict the cache up to the completed checkpoint.
   
   ## Testing
   
   I've modified the existing `KafkaSourceReaderTest#testCommitEmptyOffsets()` 
test to fail if the cache eviction fix was not applied. With this PR, that test 
now passes.


-- 
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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to