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

ZOOKEEPER-2802:Zookeeper C client hang @wait_sync_completion #2102

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yzx1983
Copy link
Contributor

@yzx1983 yzx1983 commented Jan 2, 2024

We should not terminate the do_io thread immediately when the client in "unrecoverable" state, because it can not guarantee there is no new request gets in the work queue at the same time. The safer way is make do_io keep completing the new requests when the client is unrecoverable, until a close request gets in.

We should not terminate the do_io thread immediately when the client
in "unrecoverable" state, because it can not guarantee there is no
new request gets in the work queue at the same time.
The safer way is make do_io keep completing the new requests when the
client is unrecoverable, until a close request gets in.

Also, since we don't terminate do_io thread at SESSIONEXPIRED, remove
the matching testcase from TestZookeeperClose.cc
@yzx1983 yzx1983 force-pushed the master-fixclientdeadlock branch from 5502cea to 30f1591 Compare January 4, 2024 02:45
@yzx1983
Copy link
Contributor Author

yzx1983 commented Jan 29, 2024

This is my test code to reproduce the hung issue.

testzkhung.tar.gz

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.

1 participant