Skip to content

KinesisMessageDrivenChannelAdapter crashes if first batch of a data stream never checkpoints (manual checkpoint, batch listenerMode) #221

@lalkmim

Description

@lalkmim

The relevant bit is this one: https://github.com/spring-projects/spring-integration-aws/blob/main/src/main/java/org/springframework/integration/aws/inbound/kinesis/KinesisMessageDrivenChannelAdapter.java#L1108

If the consumer receives the very first batch of records and no checkpoint is triggered, then the line above will throw a NullPointerException (lastCheckpointSequence is null), crashing the runner and stopping consumption altogether.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions