Skip to content

[backport camel-4.14.x] CAMEL-24191: camel-aws2-kinesis - fix KCL consumer session credentials and checkpoint/error handling#24849

Merged
oscerd merged 1 commit into
apache:camel-4.14.xfrom
oscerd:fix/CAMEL-24191-4.14.x
Jul 17, 2026
Merged

[backport camel-4.14.x] CAMEL-24191: camel-aws2-kinesis - fix KCL consumer session credentials and checkpoint/error handling#24849
oscerd merged 1 commit into
apache:camel-4.14.xfrom
oscerd:fix/CAMEL-24191-4.14.x

Conversation

@oscerd

@oscerd oscerd commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Backport of #24835 to camel-4.14.x. Fixes CAMEL-24191 on the 4.14.x line: reorder the DynamoDB/CloudWatch credential branches so session tokens are used, and make the KCL processRecords checkpoint only after a successful batch (routing failures to the ExceptionHandler without checkpointing, so KCL redelivers). Includes KclKinesis2ConsumerRecordProcessingTest. Related to CAMEL-24156.


Claude Code on behalf of oscerd

…s and checkpoint/error handling (apache#24835)

Reorder credential branches so session tokens are used (both DynamoDB and CloudWatch builders); checkpoint only after a successful batch and route processing failures to the ExceptionHandler without checkpointing so KCL redelivers. Adds KclKinesis2ConsumerRecordProcessingTest.

Related to CAMEL-24156.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
@oscerd oscerd added the bug Something isn't working label Jul 17, 2026
@oscerd
oscerd requested review from Croway and davsclaus July 17, 2026 12:18

@gnodet gnodet left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code on behalf of gnodet

LGTM — clean backport of #24835 to camel-4.14.x.

Verified the diff is identical to the original PR:

  1. Session credential branch reordering — 3-param check (accessKey + secretKey + sessionToken) now precedes 2-param check, for both DynamoDB and CloudWatch async clients
  2. processRecords checkpoint fix — checkpoint only after successful batch processing; failures routed to ExceptionHandler without checkpointing (at-least-once delivery)
  3. TestKclKinesis2ConsumerRecordProcessingTest verifying checkpoint-on-success / no-checkpoint-on-failure semantics

CI pending — will pass based on the identical change passing on main.

@oscerd oscerd self-assigned this Jul 17, 2026
@oscerd oscerd added this to the 4.14.9 milestone Jul 17, 2026
@oscerd
oscerd merged commit 1824b59 into apache:camel-4.14.x Jul 17, 2026
3 checks passed
@oscerd
oscerd deleted the fix/CAMEL-24191-4.14.x branch July 17, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants