Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-26890

DynamoDB consumer error consuming partitions close to retention

    XMLWordPrintableJSON

Details

    Description

      Background

      The Amazon Kinesis Data Streams consumer supports consuming from Amazon DynamoDB via the DynamoDB Streams Kinesis Adapter.

      Problem

      We have seen instances of consumer throwing ResouceNotFoundException when attempting to invoke GetShardIterator.

      com.amazonaws.services.kinesis.model.ResourceNotFoundException: Requested resource not found: Shard does not exist 
      

      According to the DynamoDB team, the DescribeStream call may return shard IDs that are no longer valid, and this exception needs to be handled by the client.

      Solution

      Modify the DynamoDB consumer to treat ResourceNotFoundException as a shard closed signal.

      Attachments

        Activity

          People

            elphastori Elphas Toringepi
            dannycranmer Danny Cranmer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: