Skip to content

Commit 41069e6

Browse files
author
Rudy den Otter
committed
Catch consume error "Local: Broker transport failure" and continue consuming
1 parent b1a9bac commit 41069e6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pkg/rdkafka/RdKafkaConsumer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ private function doReceive(int $timeout): ?RdKafkaMessage
161161
switch ($kafkaMessage->err) {
162162
case RD_KAFKA_RESP_ERR__PARTITION_EOF:
163163
case RD_KAFKA_RESP_ERR__TIMED_OUT:
164+
case RD_KAFKA_RESP_ERR__TRANSPORT:
164165
return null;
165166
case RD_KAFKA_RESP_ERR_NO_ERROR:
166167
$message = $this->serializer->toMessage($kafkaMessage->payload);

0 commit comments

Comments
 (0)