You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
close the network(turn off wifi, pull out wire, etc)
wait for all peers to fail
open the network
the sync goroutine will never recover
the sync goroutine is stucking
if network is down, the peers in peerQuene will always be in a decreasing state due to errors that not a ErrNotFound one(network connect fail etc). and eventually run out of the havePeer channel. in this time GetRangeByHeight alway wait for hasPeer channel while getRangeByHeight wait for the result channel
a candidate fix is push back the peer state for errEmptyResponse error. #238
but another fix is to add timeout for GetRangeByHeight
reproduce on mocha network
the sync goroutine is stucking
if network is down, the peers in peerQuene will always be in a decreasing state due to errors that not a ErrNotFound one(network connect fail etc). and eventually run out of the havePeer channel. in this time GetRangeByHeight alway wait for hasPeer channel while getRangeByHeight wait for the result channel
a candidate fix is push back the peer state for errEmptyResponse error. #238
but another fix is to add timeout for
GetRangeByHeight
The text was updated successfully, but these errors were encountered: