Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
79897: changefeedccl: tolerate nil error message keys in kafkfa sink r=[miretskiy] a=HonoreDB Probably Sarama was updated recently, because our roachtest for behavior when Kafka is unstable just started failing. The reason looks to be that Sarama can now create ProducerErrors with nil keys and values, and we have an error wrapper that is caught off guard by this. Probably what happened in the test is a dummy message used to prefetch metadata failed due to the Kafka server being down, and then the sink_kafka worker hit a nil pointer panic trying to wrap it. But of course we've lost the error in the panic. Anyway, now we'll just surface the raw error if there's no message key. Release note (bug fix): Fixed a bug that may have caused a panic if a Kafka server being written to by a changefeed failed at the wrong moment. Co-authored-by: Aaron Zinger <[email protected]>
- Loading branch information