Skip to content

Clarify Kinesis binder shardIteratorType documentation - #1734

Open
shuseng8 wants to merge 1 commit into
awspring:mainfrom
shuseng8:issue-1728
Open

shuseng8 wants to merge 1 commit into
awspring:mainfrom
shuseng8:issue-1728

Conversation

@shuseng8

@shuseng8 shuseng8 commented Nov 8, 2026

Copy link
Copy Markdown

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement (documentation)
  • Refactoring

📜 Description

Docs-only change to the Kinesis binder shardIteratorType property in kinesis-stream-binder.adoc:

  • States that a stored checkpoint always wins: the configured iterator type only applies to shards with no checkpoint in the metadata store (or the KCL lease table when kplKclEnabled=true).
  • Removes the incorrect statement that setting TRIM_HORIZON explicitly resets the stored checkpoints of an existing group, and points to a new consumer group or resetCheckpoints() for re-reading a stream.
  • Lists the valid values (LATEST, TRIM_HORIZON, AT_TIMESTAMP:<millis>, AT_SEQUENCE_NUMBER: / AFTER_SEQUENCE_NUMBER:<seq>), notes that the sequence-number variants aren't supported with KCL, and references the SDK v2 ShardIteratorType class instead of the v1 one.
  • Fixes the retention note (up to 365 days, not 7) and the HA paragraph that implied resuming from the checkpoint only for TRIM_HORIZON.

💡 Motivation and Context

The previous description contradicted the note right below it (which says later starts always resume from the stored checkpoint) and the actual behavior of both the default adapter and KCL mode.

Fixes #1728

💚 How did you test it?

Built the docs module locally (./mvnw -pl docs -Pdocs-classic package), which succeeds. No code changes.

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes (docs only)
  • I updated reference documentation to reflect the change
  • All tests passing (not run, docs-only change)
  • No breaking changes

@github-actions github-actions Bot added the type: documentation Documentation or Samples related issue label Nov 8, 2026
@MatejNedic

MatejNedic commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Hey @shuseng8

please #1685 take a look at this branch. Going to merge this soon i need to do one more polish. After I merge please rebase main and lets add this to release :)

@shuseng8

shuseng8 commented Nov 9, 2026

Copy link
Copy Markdown
Author

Thanks for the input, @MatejNedic! I'll keep an eye on #1685, and once it's merged I'll rebase this PR onto main so it can go into the release.

@MatejNedic

Copy link
Copy Markdown
Member

Hey @shuseng8, Kinesis integration is merged :)

The shardIteratorType description stated that an explicit TRIM_HORIZON
resets stored checkpoints for existing groups, while the note below it
stated that subsequent starts always resume from the stored checkpoint.
In both the default adapter and KCL mode, a stored checkpoint always
takes precedence and the configured iterator type only applies to shards
without a checkpoint.

Describe the supported values (including the KCL limitations), the
defaults, and the interaction with stored checkpoints, and point to the
SDK v2 ShardIteratorType class.

Fixes awspringgh-1728

Signed-off-by: Shubham <[email protected]>
@shuseng8

Copy link
Copy Markdown
Author

Thanks @MatejNedic! I've rebased this onto the latest main now that #1685 is in. The shardIteratorType wording is unchanged and still matches the current binder and adapter behavior: a stored checkpoint takes precedence, and setting TRIM_HORIZON does not reset existing checkpoints. Ready from my side to go into the release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: documentation Documentation or Samples related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ambiguous documentation definition for shardIteratorType

2 participants