You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/10/03 02:31:44 UTC

[GitHub] [pulsar] priyath opened a new issue #8192: Possibility of data loss due to asynchronous checkpointing in kinesis consumer

priyath opened a new issue #8192:
URL: https://github.com/apache/pulsar/issues/8192


   **Describe the bug**
   The KinesisRecordProcessor pushes each record to a blocking queue and proceeds to checkpoint shard progress on every checkpoint interval. But at the point of checkpointing, there is no guarantee of successful delivery of pending records in the queue, which can lead to data loss in case of instance failure.
   
   Source: https://github.com/apache/pulsar/blob/master/pulsar-io/kinesis/src/main/java/org/apache/pulsar/io/kinesis/KinesisRecordProcessor.java
   
   
   **To Reproduce**
   N/A
   
   **Expected behavior**
   All records retrieved by a consumer up until a certain checkpoint is expected to be processed successfully since any future retrievals will always return a new batch of records past the latest checkpoint.
   
   
   **Additional context**
   As per my understanding, the fix should ideally cover the following scenarios:
   
   1. Periodic checkpointing at each checkpoint interval should be performed after pending records are processed up until that point
   
   2. Checkpoint when onShardEnded is invoked should be performed after pending records are processed.
   
   3. Checkpoint when shutdownRequested is invoked should be performed after pending records are processed.
   


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

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