Skip to content

Revert Kafka tombstone support from #2933 - #3378

Merged
IvanKirpichnikov merged 1 commit into
mainfrom
revert/pr-2933
Nov 22, 2026
Merged

IvanKirpichnikov merged 1 commit into
mainfrom
revert/pr-2933

Conversation

@Lancetnik

Copy link
Copy Markdown
Member

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.

main at dd47612110
└── a38958f6f0  revert #2933 (this PR)
    └── 405cb46ce5  original patch for follow-up

Follow-up branch

Evidence

  • On feat(kafka): explicit TOMBSTONE for publishing and consuming null records #2933, a batch with KafkaPublishMessage(None, key=b"keep") followed by KafkaPublishMessage(TOMBSTONE, key=b"delete") delivered a single record with key b"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.
  • On the revert, 306 targeted Kafka and Confluent tests passed with two expected failures. git diff --check passed. The follow-up branch has the same tree as dd47612110.

Merge Danger

This is a two-way door. The revert removes the new TOMBSTONE and Tombstone exports 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.

@github-actions github-actions Bot added documentation Improvements or additions to documentation Confluent Issues related to `faststream.confluent` module AioKafka Issues related to `faststream.kafka` module labels Nov 22, 2026
@IvanKirpichnikov
IvanKirpichnikov added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit d78fc42 Nov 22, 2026
35 checks passed
@IvanKirpichnikov
IvanKirpichnikov deleted the revert/pr-2933 branch November 22, 2026 15:01
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AioKafka Issues related to `faststream.kafka` module Confluent Issues related to `faststream.confluent` module documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants