kafka_franz/redpanda 输出: 在映射后无法生成墓碑 (空值)
作者: LostHeir创建于 2026年9月24日更新于 2026年9月25日
- Bloblang
root = nullcallsSetStructured(nil), which serializes to[]byte("null"). root = ""produces a non-nil, zero-length byte slice.FranzWriter.messageBatchToFranzRecordsdoesr.Value, err = msg.AsBytes()and has no way to set a nil value. The saramakafkaoutput does the same withsarama.ByteEncoder(msgBytes).- franz-go (
kbin.AppendVarintBytes) writes length-1only for anilslice. kafka_tombstone_messageexists 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