orientdb icon indicating copy to clipboard operation
orientdb copied to clipboard

Distributed: Improve timeouts

Open lvca opened this issue 12 years ago • 4 comments

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.

lvca avatar Aug 11 '14 12:08 lvca

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 avatar Aug 11 '14 12:08 robgratz

@robgratz :+1:

lvca avatar Aug 12 '14 09:08 lvca

Partial work on this: e189186ade29d71938efc48faf598f3acf87e3de

lvca avatar Aug 12 '14 09:08 lvca

Fixed timeouts, avoid to wait for whole timeout if node are down, and considered the node that are synchronizing as online for quorum purpose.

lvca avatar Aug 12 '14 12:08 lvca