• antirez's avatar
    Cluster: properly send ping to nodes not pinged foro too much time. · f09b2508
    antirez authored
    In commit d728ec6d it was introduced the concept of sending a ping to
    every node not receiving a ping since node_timeout/2 seconds.
    However the code was located in a place that was not executed because of
    a previous conditional causing the loop to re-iterate.
    
    This caused false positives in nodes availability detection.
    
    The current code is still not perfect as a node may be detected to be in
    PFAIL state even if it does not reply for just node_timeout/2 seconds
    that is not correct. There is a plan to improve this code ASAP.
    f09b2508
cluster.c 103 KB