Skip to content

Commit

Permalink
Bulk Load CDK: Bugfix: Checkpoint manager allows duplicate indexes (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
johnny-schmidt authored Oct 9, 2024
1 parent d6eb912 commit 138972d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ abstract class StreamsCheckpointManager<T> : CheckpointManager<DestinationStream
) {
streamIndexes.forEach { (stream, index) ->
val lastIndex = lastIndexEmitted[stream]
if (lastIndex != null && index <= lastIndex) {
if (lastIndex != null && index < lastIndex) {
throw IllegalStateException(
"Checkpoint message for $stream emitted out of order (emitting $index after $lastIndex)"
)
Expand Down

0 comments on commit 138972d

Please sign in to comment.