mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 00:52:38 +00:00
Log clusterbus handshake timeout failures (#1247)
This adds a log when a handshake fails for a timeout. This can help troubleshoot cluster asymmetry issues caused by failed MEETs --------- Signed-off-by: Ben Totten <btotten@amazon.com> Signed-off-by: bentotten <59932872+bentotten@users.noreply.github.com> Co-authored-by: Ben Totten <btotten@amazon.com> Co-authored-by: Madelyn Olson <madelyneolson@gmail.com>
This commit is contained in:
parent
32f7541fe3
commit
b9994030e9
@ -4909,6 +4909,8 @@ static int clusterNodeCronHandleReconnect(clusterNode *node, mstime_t handshake_
|
||||
/* A Node in HANDSHAKE state has a limited lifespan equal to the
|
||||
* configured node timeout. */
|
||||
if (nodeInHandshake(node) && now - node->ctime > handshake_timeout) {
|
||||
serverLog(LL_WARNING, "Clusterbus handshake timeout %s:%d after %lldms", node->ip,
|
||||
node->cport, handshake_timeout);
|
||||
clusterDelNode(node);
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user