#4851·connect

kafka_franz/redpanda 输出: 在映射后无法生成墓碑 (空值)

作者: LostHeir创建于 2026年9月24日更新于 2026年9月25日
  • Bloblang root = null calls SetStructured(nil), which serializes to []byte("null").
  • root = "" produces a non-nil, zero-length byte slice.
  • FranzWriter.messageBatchToFranzRecords does r.Value, err = msg.AsBytes() and has no way to set a nil value. The sarama kafka output does the same with sarama.ByteEncoder(msgBytes).
  • franz-go (kbin.AppendVarintBytes) writes length -1 only for a nil slice.
  • kafka_tombstone_message exists only as input metadata. Tombstones survive a pure passthrough (the input creates the message from a nil value), but any processor that sets the content loses them.

内容来源: redpanda-data/connect