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

Avoid 100% CPU usage while socket is closed #156

Merged

Conversation

wbarnha
Copy link
Owner

@wbarnha wbarnha commented Mar 8, 2024

After stop/start kafka service, kafka-python may use 100% CPU caused by
busy-retry while the socket was closed. This fix the issue by unregister
the socket if the fd is negative.


This change is Reviewable

orange-kao and others added 3 commits July 31, 2020 01:08
After stop/start kafka service, kafka-python may use 100% CPU caused by
busy-retry while the socket was closed. This fix the issue by unregister
the socket if the fd is negative.
@wbarnha wbarnha merged commit cda8f81 into wbarnha:master Mar 9, 2024
21 checks passed
@dingxiong dingxiong mentioned this pull request Apr 10, 2024
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

Successfully merging this pull request may close these issues.

2 participants