-
Notifications
You must be signed in to change notification settings - Fork 233
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
Too many reqs on kafka not available #496
Comments
Hmm, seems like a bug. Will try to ckeck once I get back from pto. The case definitely deserves an integration test. |
I'm facing the same issue using Docker and Docker Compose. There're two containers, namely import aiokafka
import asyncio
async def main():
producer = aiokafka.AIOKafkaProducer(
loop=asyncio.get_event_loop(),
bootstrap_servers='kafka:9092',
)
await producer.start()
try:
while True:
await asyncio.sleep(1)
await producer.send('test', b'test-data')
finally:
await producer.stop()
if __name__ == '__main__':
loop = asyncio.get_event_loop()
loop.run_until_complete(main()) After killing $ docker-compose stop kafka ...endless reconnect loop occures in a
|
Will try to find time for this on 0.6.0, as it's a bad one. We can't have logs filling like crazy. |
hey, can we catch "NodeNotReadyError" exception while consuming from Kafka. So that we can take any action at this situation. Like sending alert. |
@arvindjangra1996 Will answer in #612 |
Merge and released as part of 0.6.0. Hope it solves the issue. |
I have code with simple consumer. I undestand that most of time at least 1 of nodes will be available. But on kafka stop it send too many requests and uses up to 100% cpu
Isn't retry_backoff_ms param meant for this case? Is it used on production systems?
The text was updated successfully, but these errors were encountered: