Skip to content

Fix Kafka durable mode offset management by removing EnableAutoOffset…#2256

Merged
jeremydmiller merged 1 commit intomainfrom
fix/kafka-durable-offset-management
Mar 2, 2026
Merged

Fix Kafka durable mode offset management by removing EnableAutoOffset…#2256
jeremydmiller merged 1 commit intomainfrom
fix/kafka-durable-offset-management

Conversation

@jeremydmiller
Copy link
Member

…Store override

Remove EnableAutoOffsetStore = false so offsets are auto-stored on each Consume() call, while keeping EnableAutoCommit = false so offsets are only committed when Wolverine explicitly calls Commit() in CompleteAsync(). This gives correct at-least-once semantics without needing to thread ConsumeResult through to CompleteAsync. Previously, offsets never advanced because StoreOffset() was never called, causing message loss on consumer restart.

Also fix propagate_group_id_to_partition_key test by adding the missing publish route for TriggerFromGroupId and setting AutoOffsetReset.Earliest to avoid consumer group join timing races.

…Store override

Remove EnableAutoOffsetStore = false so offsets are auto-stored on each Consume()
call, while keeping EnableAutoCommit = false so offsets are only committed when
Wolverine explicitly calls Commit() in CompleteAsync(). This gives correct
at-least-once semantics without needing to thread ConsumeResult through to
CompleteAsync. Previously, offsets never advanced because StoreOffset() was never
called, causing message loss on consumer restart.

Also fix propagate_group_id_to_partition_key test by adding the missing publish
route for TriggerFromGroupId and setting AutoOffsetReset.Earliest to avoid
consumer group join timing races.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant