php-enqueue / enqueue-dev

Message Queue, Job Queue, Broadcasting, WebSockets packages for PHP, Symfony, Laravel, Magento. DEVELOPMENT REPOSITORY - provided by Forma-Pro
https://enqueue.forma-pro.com/
MIT License
2.18k stars 433 forks source link

RdKafkaConsumer crash #1357

Open alexshiloov opened 2 months ago

alexshiloov commented 2 months ago

175 line https://github.com/php-enqueue/rdkafka/blob/master/RdKafkaConsumer.php#L175

$message = $this->serializer->toMessage($kafkaMessage->payload);

It will lead to crash, if someone push to kafka empty msg for example. I think it is not correct for crashing, maybe skipping this msg or returning null