opensearch-project / opensearch-project/data-prepper

[BUG] DynamoDB source should not complete all partitions when receiving errors from GetShardIterator

Open
#6,206 0 comments 0 reactions 1 assignee View on GitHub

@graytaylor0 is already working on this.

Since Nov 4, 2025.

bug
Dominant language
Java
Stars
374
Forks
354
Avg merge
3d 18h
Merged PRs (30d)
8

Description

Describe the bug
The ShardConsumerFactory class returns null if it receives any exceptions on the GetShardIterator call, and then the StreamScheduler completes the shard partition when that happens. We should not complete the partition for the shard when we receive exceptions like InternalServerError or AccessDenied, to name a few

Expected behavior
Exceptions like InternalServerError or AccessDenied should not result in the partition being completed, and should eventually be retried.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: [e.g. Ubuntu 20.04 LTS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.