Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.16.0, 1.15.2
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.