Skip to content

CON-600: aws_dynamodb_cdc: keep the shard completion marker against late plain checkpoint writes - #5014

Merged
squiidz merged 1 commit into
mainfrom
jira/CON-600
Oct 28, 2026
Merged

squiidz merged 1 commit into
mainfrom
jira/CON-600

Conversation

@squiidz

@squiidz squiidz commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

What

aws_dynamodb_cdc no longer loses a shard completion marker when a late plain checkpoint write lands after the shard was marked completed, so a restart does not re-read the shard.

Why

Set was a full PutItem; a maybePersist write that timed out client-side could still reach DynamoDB after MarkShardCompleted and replace the completed row with a plain one (CON-600, found during CON-599 / #5001).

How

Testing

  • Unit: go test -race ./internal/impl/aws/dynamodb/... pass
  • Integration: dynamodb package with -tags integration against Docker passed, incl. SetKeepsCompletionMarker
  • Skipped: dynamodb-cdc e2e scenario (no enterprise license)

Risks

Plain checkpoint writes now carry a condition; a late write on a completed row is silently skipped at debug level. No migration.

Jira: https://redpandadata.atlassian.net/browse/CON-600

@squiidz
squiidz marked this pull request as ready for review October 22, 2026 14:21
@Leward
Leward added this pull request to stack #5056 October 26, 2026 19:55
@squiidz
squiidz force-pushed the jira/CON-600 branch 2 times, most recently from 52ff6b0 to 858b63e Compare October 28, 2026 00:58
Base automatically changed from jira/CON-599 to main October 28, 2026 16:29
@squiidz
squiidz merged commit ab68ca3 into main Oct 28, 2026
15 checks passed
@squiidz
squiidz deleted the jira/CON-600 branch October 28, 2026 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants