php-rdkafka: MSG_TIMED_OUT with error code -192 in DrMsgCb normal?

log:

[thrd:main]: test_cdc: 1 message(s) from 1 toppar(s) timed out
  • PHP version: 7.2.26
  • librdkafka version: 0.11.3
  • php-rdkafka version: 4.0.3
  • kafka version: 2.2.1

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (3 by maintainers)

Most upvoted comments

Please add debug logs from librdkafka. You can get those by adjusting your Conf object:

<?php
$conf = new RdKafka\Conf();
$conf->set('log_level', (string) LOG_DEBUG);
$conf->set('debug', 'all');
$rk = new RdKafka\Producer($conf);
$rk->addBrokers("10.0.0.1:9092,10.0.0.2:9092");

(excerpt from readme)

Are you able to work with the broker using different tools? For example, can you commit messages using Kafka’s bin/kafka-console-producer.sh script (https://kafka.apache.org/quickstart#quickstart_send)?