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
master hanging on "write" sys call #208
Labels
bug
Something isn't working
Comments
PROGRESS: doing some searches online
and |
https://github.com/QuarkChain/pyquarkchain/blob/master/quarkchain/cluster/cluster.py#L37 |
ninjaahhh
added a commit
that referenced
this issue
Apr 30, 2019
1. When writing logs using `Logger.info` (say, logging JSONRPC requests) 2. Master or slave process calls `asyncio.StreamReader.readline` to get the log out 3. However the stream has a buffer limit 64k and will throw exception if reached, hence the printing coroutine will crash 4. As a result, the process's pipe may get full because no one is consuming, leading the process hang Fixes #208
ninjaahhh
added a commit
that referenced
this issue
Apr 30, 2019
1. When writing logs using `Logger.info` (say, logging JSONRPC requests) 2. Master or slave process calls `asyncio.StreamReader.readline` to get the log out 3. However the stream has a buffer limit 64k and will throw exception if reached, hence the printing coroutine will crash 4. As a result, the process's pipe may get full because no one is consuming, leading the process hang Fixes #208
Belgarion
pushed a commit
to Belgarion/pyquarkchain_cuda
that referenced
this issue
Sep 8, 2020
1. When writing logs using `Logger.info` (say, logging JSONRPC requests) 2. Master or slave process calls `asyncio.StreamReader.readline` to get the log out 3. However the stream has a buffer limit 64k and will throw exception if reached, hence the printing coroutine will crash 4. As a result, the process's pipe may get full because no one is consuming, leading the process hang Fixes QuarkChain#208
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when running the cluster (
testnet201.bootstrap
), after mining for a certain period of time, the jsonrpc server became unresponsive for all requests.strace
shows following resultsso slave server looks fine, but master is hanging on writing the jsonrpc log to strerr (file descriptor 2).
it also points to line 408
pyquarkchain/quarkchain/cluster/jsonrpc.py
Lines 406 to 409 in 5eca86b
where in turn it calls
pyquarkchain/quarkchain/utils.py
Lines 222 to 225 in 5eca86b
need to find out why the
write
call is blocked.The text was updated successfully, but these errors were encountered: