Buggy code:
public class Gossiper implements IEndPointStateChangePublisher , IFailureDetectionEventListener { private class GossipTimerTask extends TimerTask { public void run ( ) { try { MessagingService . instance . waitUntilListening ( ) ; synchronized ( Gossiper . instance ) { endPointStateMap_ . get ( localEndPoint_ ) . getHeartBeatState ( ) . updateHeartBeat ( ) ; List < GossipDigest > gDigests = new ArrayList < GossipDigest > ( ) ; Gossiper . instance . makeRandomGossipDigest ( gDigests ) ; if ( ( gDigests . size ( ) ) > 0 ) { Message message = makeGossipDigestSynMessage ( gDigests ) ; boolean gossipedToSeed = doGossipToLiveMember ( message ) ; doGossipToUnreachableMember ( message ) ; if ( ( ! gossipedToSeed ) || ( ( liveEndpoints_ . size ( ) ) < ( seeds_ . size ( ) ) ) ) doGossipToSeed ( message ) ; if ( Gossiper . logger_ . isTraceEnabled ( ) ) Gossiper . logger_ . trace ( "Performing<seq2seq4repair_space>status<seq2seq4repair_space>check<seq2seq4repair_space>..." ) ; doStatusCheck ( ) ; } } } catch ( Exception e ) { <START_BUG> throw new RuntimeException ( e ) ; <END_BUG> } } } static final int MAX_GOSSIP_PACKET_SIZE = 1428 ; public static final int intervalInMillis_ = 1000 ; private static Logger logger_ = Logger . getLogger ( Gossiper . class ) ; public static final Gossiper instance = new Gossiper ( ) ; private Timer gossipTimer_ ; private InetAddress localEndPoint_ ; private long aVeryLongTime_ ; private long FatClientTimeout_ ; private Random random_ = new Random ( ) ; private List < IEndPointStateChangeSubscriber > subscribers_ = new ArrayList < IEndPointStateChangeSubscriber > ( ) ; private Set < InetAddress > liveEndpoints_ = new HashSet < InetAddress > ( ) ; private Set < InetAddress > unreachableEndpoints_ = new HashSet < InetAddress > ( ) ; private Set < InetAddress > seeds_ = new HashSet < InetAddress > ( ) ; Map < InetAddress , EndPointState > endPointStateMap_ = new Hashtable < InetAddress , EndPointState > ( ) ; Map < InetAddress , Long > justRemovedEndPoints_ = new Hashtable < InetAddress , Long > ( ) ; private Gossiper ( ) { } public synchronized void register ( IEndPointStateChangeSubscriber subscriber ) { } public synchronized void unregister ( IEndPointStateChangeSubscriber subscriber ) { } public Set < InetAddress > getLiveMembers ( ) { } public Set < InetAddress > getUnreachableMembers ( ) { } public void convict ( InetAddress endpoint ) { } int getMaxEndPointStateVersion ( EndPointState epState ) { } void evictFromMembership ( InetAddress endpoint ) { } public void removeEndPoint ( InetAddress endpoint ) { } void makeRandomGossipDigest ( List < GossipDigest > gDigests ) { } public boolean isKnownEndpoint ( InetAddress endpoint ) { } public int getCurrentGenerationNumber ( InetAddress endpoint ) { } Message makeGossipDigestSynMessage ( List < GossipDigest > gDigests ) throws IOException { } Message makeGossipDigestAckMessage ( GossipDigestAckMessage gDigestAckMessage ) throws IOException { } Message makeGossipDigestAck2Message ( GossipDigestAck2Message gDigestAck2Message ) throws IOException { } boolean sendGossip ( Message message , Set < InetAddress > epSet ) { } boolean doGossipToLiveMember ( Message message ) { } void doGossipToUnreachableMember ( Message message ) { } void doGossipToSeed ( Message message ) { } void doStatusCheck ( ) { } EndPointState getEndPointStateForEndPoint ( InetAddress ep ) { } synchronized EndPointState getStateForVersionBiggerThan ( InetAddress forEndpoint , int version ) { } public int compareEndpointStartup ( InetAddress addr1 , InetAddress addr2 ) { } synchronized void join ( InetAddress from ) { } void notifyFailureDetector ( List < GossipDigest > gDigests ) { } void notifyFailureDetector ( Map < InetAddress , EndPointState > remoteEpStateMap ) { } void markAlive ( InetAddress addr , EndPointState localState ) { } private void handleNewJoin ( InetAddress ep , EndPointState epState ) { } private void handleGenerationChange ( InetAddress ep , EndPointState epState ) { } private void handleMajorStateChange ( InetAddress ep , EndPointState epState , boolean isKnownNode ) { } synchronized void applyStateLocally ( Map < InetAddress , EndPointState > epStateMap ) { } void applyHeartBeatStateLocally ( InetAddress addr , EndPointState localState , EndPointState remoteState ) { } void applyApplicationStateLocally ( InetAddress addr , EndPointState localStatePtr , EndPointState remoteStatePtr ) { } void doNotifications ( InetAddress addr , String stateName , ApplicationState state ) { } synchronized void isAlive ( InetAddress addr , EndPointState epState , boolean value ) { } void requestAll ( GossipDigest gDigest , List < GossipDigest > deltaGossipDigestList , int remoteGeneration ) { } void sendAll ( GossipDigest gDigest , Map < InetAddress , EndPointState > deltaEpStateMap , int maxRemoteVersion ) { } synchronized void examineGossiper ( List < GossipDigest > gDigestList , List < GossipDigest > deltaGossipDigestList , Map < InetAddress , EndPointState > deltaEpStateMap ) { } public void start ( InetAddress localEndPoint , int generationNbr ) { } public synchronized void addLocalApplicationState ( String key , ApplicationState appState ) { } public void stop ( ) { } }

Fix:
Gossiper . logger_ . error ( "Gossip<seq2seq4repair_space>error" , e ) ;