Distributed: Improve timeouts
Current timeouts are pretty low. We could catch the case a node is unreachable and notify this event to the pending threads are waiting for synchronous responses.
The thing to keep in mind with the timeout problem specific to the chunk synchronization is that the request/response for chunks is between 2 specific nodes and not based on quorum. The current timeout of 3 seconds was changed to 30 seconds recently, but that caused a blocking problem because a loop was now waiting 30 seconds to check quorum status again. It was then changed back to 3 seconds which fixed the blocking problem. Maybe just having a different timeout value for the chunk synchronization that can be set higher may solve the problem?
@robgratz :+1:
Partial work on this: e189186ade29d71938efc48faf598f3acf87e3de
Fixed timeouts, avoid to wait for whole timeout if node are down, and considered the node that are synchronizing as online for quorum purpose.