Repository navigation
Revert Kafka tombstone support from #2933 - #3378
Merged
Merged
Conversation
Lancetnik
requested review from
IvanKirpichnikov and
draincoder
as code owners
November 22, 2026 14:43
IvanKirpichnikov
approved these changes
Nov 22, 2026
IvanKirpichnikov
enabled auto-merge
November 22, 2026 14:45
Lancetnik
added a commit
to aradng/faststream
that referenced
this pull request
Nov 22, 2026
Restore the single-record FastAPI tombstone fix from ag2ai#3028 on top of ag2ai#3378. Retain the typed, order-independent regression tests and the distinction between a null record and an empty payload.
This was referenced Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Revert the squash commit from #2933 (
1ba1e0793c) because a batch can send a tombstone under the wrong key in both Kafka backends. This can delete the wrong record from a compacted topic.Follow-up branch
Evidence
KafkaPublishMessage(None, key=b"keep")followed byKafkaPublishMessage(TOMBSTONE, key=b"delete")delivered a single record with keyb"keep"and a null value in both in-memory backends. The connected batch test also failed with aiokafka 0.10.0 because no record had a null value.git diff --checkpassed. The follow-up branch has the same tree asdd47612110.Merge Danger
This is a two-way door. The revert removes the new
TOMBSTONEandTombstoneexports and rolls back the FastAPI handling bundled into #2933 from #3028.AI assistance
Codex prepared the revert and follow-up branches, ran the checks, and drafted this description.