Skip to content

Fix possible record loss and catch-up in KafkaCache.putAll - #550

Merged
rayokota merged 2 commits into
masterfrom
fix-putall
Aug 28, 2026
Merged

rayokota merged 2 commits into
masterfrom
fix-putall

Conversation

@rayokota

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Concurrent writes can regress or incorrectly roll back shared partition offsets.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Fixes KafkaCache.putAll to await acknowledgements and cache catch-up across every written partition.

Changes:

  • Tracks acknowledgements and maximum offsets per partition.
  • Adds shared timeout budgets and multi-partition regression coverage.
File summaries
File Description
KafkaCache.java Waits for all acknowledgements and partition offsets.
KafkaCacheTest.java Tests visibility across three partitions.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread kcache/src/test/java/io/kcache/KafkaCacheTest.java
Comment thread kcache/src/main/java/io/kcache/KafkaCache.java Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The implementation addresses both failure detection and partition catch-up with focused regression coverage.

Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

@rayokota
rayokota merged commit 00eaed2 into master Aug 28, 2026
3 checks passed
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.

2 participants