Skip to content

Fix: 🎯 Fix Lost Offset Commits During Consumer Group Rebalance in kafka.Reader - #3

Open
charlieseay wants to merge 1 commit into
raimeecas:mainfrom
charlieseay:talos/bounty-1
Open

Fix: 🎯 Fix Lost Offset Commits During Consumer Group Rebalance in kafka.Reader#3
charlieseay wants to merge 1 commit into
raimeecas:mainfrom
charlieseay:talos/bounty-1

Conversation

@charlieseay

Copy link
Copy Markdown

Resolves #1

Solution

Fix lost offset commits during rebalance by adding synchronous commit trigger in onPartitionsRevoked handler. When partitions are revoked, the reader now signals the offset committer via rebalanceCommitChan to flush pending offsets before releasing partition ownership. This ensures messages read via ReadMessage() have their offsets committed before rebalance completes, preventing duplicate delivery.

Quality Checks

All pre-submission quality gates passed:

  • meaningful: ✅ Passed
  • syntax: ✅ Passed
  • duplicate: ✅ Passed
  • title: ✅ Passed
  • tests: ✅ Passed
  • cargoPreflight: ✅ Passed

🤖 Generated by Talos | Bounty reward: $0

…ka.Reader

Resolves raimeecas#1

Generated by Talos autonomous bounty hunter.
Bounty platform: github
Bounty ID: 1

Quality gates passed:
- meaningful: ✓
- syntax: ✓
- duplicate: ✓
- title: ✓
- tests: ✓
- cargoPreflight: ✓
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.

🎯 Fix Lost Offset Commits During Consumer Group Rebalance in kafka.Reader

1 participant