src/java/org/apache/cassandra/gms/Gossiper.java
/* Gossip to a seed for facilitating partition healing */
Gossip to a seed for facilitating partition healing
Gossip to a seed for facilitating partition healing
private void doGossipToSeed(MessageProducer prod)
    {
        int size = seeds.size();
        if ( size > 0 )
        {
            if ( size == 1 && seeds.contains(FBUtilities.getBroadcastAddress()) )
            {
                return;
            }
            if ( liveEndpoints.size() == 0 )
            {
                sendGossip(prod, seeds);
            }
            else
            {
                /* Gossip with the seed with some probability. */
                double probability = seeds.size() / (double)( liveEndpoints.size() + unreachableEndpoints.size() );
                double randDbl = random.nextDouble();
                if ( randDbl <= probability )
                    sendGossip(prod, seeds);
            }
        }
    }
private void doGossipToSeed ( MessageProducer prod ) { int size = seeds . size ( ) ; if ( size > 0 ) { if ( size == 1 && seeds . contains ( FBUtilities . getBroadcastAddress ( ) ) ) { return ; } if ( liveEndpoints . size ( ) == 0 ) { sendGossip ( prod , seeds ) ; } else { /* Gossip with the seed with some probability. */ double probability = seeds . size ( ) / ( double ) ( liveEndpoints . size ( ) + unreachableEndpoints . size ( ) ) ; double randDbl = random . nextDouble ( ) ; if ( randDbl <= probability ) sendGossip ( prod , seeds ) ; } } }
Gossip to a seed for facilitating partition healing
Gossip to a seed for facilitating partition healing