Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

err_code: -195, err_msg: Local: Broker transport failure #304

Closed
luowencai opened this issue Oct 27, 2019 · 3 comments
Closed

err_code: -195, err_msg: Local: Broker transport failure #304

luowencai opened this issue Oct 27, 2019 · 3 comments

Comments

@luowencai
Copy link

  • PHP version:7.2.19
  • librdkafka version:1.1.0.255
  • php-rdkafka version:3.1.2
  • kafka version:2.3
    we refer to hight level example`s code and occurs the following error
INFO - err_code: -195, err_msg: Local: Broker transport failure
RdKafka\Exception: Local: Broker transport failure

hight level example treat RD_KAFKA_RESP_ERR__TRANSPORT=-195 as exception and kafka log did not find any error or warn.
should we treat itg as normal info? it seems this error will automaticly resume

@Steveb-p
Copy link
Contributor

Steveb-p commented Oct 27, 2019

@luowencai I'm fairly certain your RdKafka instance (client) is unable to communicate with Kafka broker. Are you actually producing or consuming any messages?

What do you mean by high-level example? High-level consumer does not handle this return code: https://arnaud.le-blanc.net/php-rdkafka/phpdoc/rdkafka.examples-high-level-consumer.html

@luowencai
Copy link
Author

yes,in our application, this error happen a day or two,it seems it was network instable or other, and after our process restart because of exception,it will resume.
i have find this issue,confluentinc/librdkafka#64 ,and it shows we could ignore this error RD_KAFKA_RESP_ERR__TRANSPORT. i wolud like to ask your suggestion if its necessary...

@luowencai
Copy link
Author

when this error happen too many times like 5 or 10,we will restart the app,other wise ignore it,continue to watch it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants