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

catch "NodeNotReadyError" exception while consuming from Kafka #612

Open
arvindjangra1996 opened this issue May 13, 2020 · 7 comments
Open

Comments

@arvindjangra1996
Copy link

Hey can we catch "NodeNotReadyError" exception while consuming from Kafka . So that we can take any action at this situation. Like sending alert.

@tvoinarovskyi
Copy link
Member

At the moment there is no way to catch connection errors, sorry. What situation in particular are you interested in? When some node disconnects or is not reachable for some amount of time, or all nodes are not available?

@ja8zyjits
Copy link

@tvoinarovskyi can it automatically connect with other active nodes when few nodes are down? Our system just hangs when one node is down.

@tvoinarovskyi
Copy link
Member

tvoinarovskyi commented Jun 12, 2020

@ja8zyjits It should, the system is meant to run on cluster systems with automatic reconnect on node failure. Could you open a bug issue with more detail on what scenario are you seeing? There seems to be one issue #625, that also has symptoms of stopping, maybe it may be related.

@ja8zyjits
Copy link

@tvoinarovskyi sorry, not able to reproduce. It happens rarely and the system just hangs.
will report a new bug once we are able to reproduce the issue properly.

@marcelotrevisani
Copy link

marcelotrevisani commented Jun 16, 2021

If you have two containers one kafka and another one with the aiokafkaconsumer
if you restart kafka or kafka crashes the aiokafkaconsumer will hang for a long time. However, if I just restart the aiokafkaconsumer everything will work fine.

I tried a lot of different approaches, setting lower times for the session, consumer and other things but none of them worked.
It would be really useful if we had an option in the aiokafkaconsumer to forward the exception when they occur
Because from this example I could just end the consumer and recreate it

@sam-orca
Copy link

Anyone able to fix the issue yet"?

@elina-israyelyan
Copy link

Still having the issue.

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

6 participants