Buggy code:
public void serialize ( AntiEntropyService . TreeRequest request , DataOutputStream dos , int version ) throws IOException { } public AntiEntropyService . TreeRequest deserialize ( DataInputStream dis , int version ) throws IOException { } public void doVerb ( Message message , String id ) { } } public static class TreeResponseVerbHandler implements ICompactSerializer < AntiEntropyService . Validator > , IVerbHandler { public static final AntiEntropyService . TreeResponseVerbHandler SERIALIZER = new AntiEntropyService . TreeResponseVerbHandler ( ) ; static Message makeVerb ( InetAddress local , AntiEntropyService . Validator validator ) { } public void serialize ( AntiEntropyService . Validator v , DataOutputStream dos , int version ) throws IOException { } public AntiEntropyService . Validator deserialize ( DataInputStream dis , int version ) throws IOException { } public void doVerb ( Message message , String id ) { } } static class CFPair extends Pair < String , String > { public CFPair ( String table , String cf ) { } } static class TreePair extends Pair < MerkleTree , MerkleTree > { public TreePair ( MerkleTree local , MerkleTree remote ) { } } public static class TreeRequest { public final String sessionid ; public final InetAddress endpoint ; public final Range range ; public final AntiEntropyService . CFPair cf ; public TreeRequest ( String sessionid , InetAddress endpoint , Range range , AntiEntropyService . CFPair cf ) { } @ Override public final int hashCode ( ) { } @ Override public final boolean equals ( Object o ) { } @ Override public String toString ( ) { } } class RepairSession extends WrappedRunnable implements IEndpointStateChangeSubscriber , IFailureDetectionEventListener { private final String sessionName ; private final String tablename ; private final String [ ] cfnames ; private final Range range ; private volatile Exception exception ; private final AtomicBoolean isFailed = new AtomicBoolean ( false ) ; private final Set < InetAddress > endpoints ; final Queue < AntiEntropyService . RepairSession . RepairJob > jobs = new ConcurrentLinkedQueue < AntiEntropyService . RepairSession . RepairJob > ( ) ; final Map < String , AntiEntropyService . RepairSession . RepairJob > activeJobs = new ConcurrentHashMap < String , AntiEntropyService . RepairSession . RepairJob > ( ) ; private final SimpleCondition completed = new SimpleCondition ( ) ; public final Condition differencingDone = new SimpleCondition ( ) ; public RepairSession ( AntiEntropyService . TreeRequest req , String tablename , String ... cfnames ) { } public RepairSession ( Range range , String tablename , String ... cfnames ) { } private RepairSession ( String id , Range range , String tablename , String [ ] cfnames ) { } public String getName ( ) { } AntiEntropyService . RepairFuture getFuture ( ) { } public void runMayThrow ( ) throws Exception { if ( endpoints . isEmpty ( ) ) { differencingDone . signalAll ( ) ; AntiEntropyService . logger . info ( ( ( ( ( ( ( "No<seq2seq4repair_space>neighbors<seq2seq4repair_space>to<seq2seq4repair_space>repair<seq2seq4repair_space>with<seq2seq4repair_space>for<seq2seq4repair_space>" + ( tablename ) ) + "<seq2seq4repair_space>on<seq2seq4repair_space>" ) + ( range ) ) + ":<seq2seq4repair_space>" ) + ( getName ( ) ) ) + "<seq2seq4repair_space>completed." ) ) ; return ; } for ( InetAddress endpoint : endpoints ) { if ( ! ( FailureDetector . instance . isAlive ( endpoint ) ) ) { differencingDone . signalAll ( ) ; AntiEntropyService . logger . info ( ( ( ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>proceed<seq2seq4repair_space>on<seq2seq4repair_space>repair<seq2seq4repair_space>because<seq2seq4repair_space>a<seq2seq4repair_space>neighbor<seq2seq4repair_space>(" + endpoint ) + ")<seq2seq4repair_space>is<seq2seq4repair_space>dead:<seq2seq4repair_space>" ) + ( getName ( ) ) ) + "<seq2seq4repair_space>failed." ) ) ; return ; } } AntiEntropyService . instance . sessions . put ( getName ( ) , this ) ; Gossiper . instance . register ( this ) ; FailureDetector . instance . registerFailureDetectionEventListener ( this ) ; try { for ( String cfname : cfnames ) { AntiEntropyService . RepairSession . RepairJob job = new AntiEntropyService . RepairSession . RepairJob ( cfname ) ; jobs . offer ( job ) ; activeJobs . put ( cfname , job ) ; } jobs . peek ( ) . sendTreeRequests ( ) ; completed . await ( ) ; if ( ( exception ) == null ) { <START_BUG> AntiEntropyService . logger . info ( String . format ( "Repair<seq2seq4repair_space>session<seq2seq4repair_space>%s<seq2seq4repair_space>(on<seq2seq4repair_space>cfs<seq2seq4repair_space>%s,<seq2seq4repair_space>range<seq2seq4repair_space>%s)<seq2seq4repair_space>completed<seq2seq4repair_space>successfully" , getName ( ) ) , cfnames , range ) ; <END_BUG> } else { AntiEntropyService . logger . error ( String . format ( "Repair<seq2seq4repair_space>session<seq2seq4repair_space>%s<seq2seq4repair_space>(on<seq2seq4repair_space>cfs<seq2seq4repair_space>%s,<seq2seq4repair_space>range<seq2seq4repair_space>%s)<seq2seq4repair_space>failed<seq2seq4repair_space>with<seq2seq4repair_space>the<seq2seq4repair_space>following<seq2seq4repair_space>error" , getName ( ) , cfnames , range ) , exception ) ; throw exception ; } } catch ( InterruptedException e ) { throw new RuntimeException ( "Interrupted<seq2seq4repair_space>while<seq2seq4repair_space>waiting<seq2seq4repair_space>for<seq2seq4repair_space>repair:<seq2seq4repair_space>repair<seq2seq4repair_space>will<seq2seq4repair_space>continue<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>background." ) ; } finally { FailureDetector . instance . unregisterFailureDetectionEventListener ( this ) ; Gossiper . instance . unregister ( this ) ; AntiEntropyService . instance . sessions . remove ( getName ( ) ) ; } } void completed ( InetAddress remote , String cfname ) { } void failedNode ( InetAddress remote ) { } public void onJoin ( InetAddress endpoint , EndpointState epState ) { } public void onChange ( InetAddress endpoint , ApplicationState state , VersionedValue value ) { } public void onAlive ( InetAddress endpoint , EndpointState state ) { } public void onDead ( InetAddress endpoint , EndpointState state ) { } public void onRemove ( InetAddress endpoint ) { } public void onRestart ( InetAddress endpoint , EndpointState epState ) { } public void convict ( InetAddress endpoint , double phi ) { } class RepairJob { private final String cfname ; private final Set < InetAddress > requestedEndpoints = new HashSet < InetAddress > ( ) ; private final Map < InetAddress , MerkleTree > trees = new HashMap < InetAddress , MerkleTree > ( ) ; private final Set < InetAddress > syncJobs = new HashSet < InetAddress > ( ) ; public RepairJob ( String cfname ) { } public void sendTreeRequests ( ) { } public synchronized int addTree ( AntiEntropyService . TreeRequest request , MerkleTree tree ) { } public void submitDifferencers ( ) { }

Fix:
AntiEntropyService . logger . info ( String . format ( "Repair<seq2seq4repair_space>session<seq2seq4repair_space>%s<seq2seq4repair_space>(on<seq2seq4repair_space>cfs<seq2seq4repair_space>%s,<seq2seq4repair_space>range<seq2seq4repair_space>%s)<seq2seq4repair_space>completed<seq2seq4repair_space>successfully" , getName ( ) , cfnames , range ) ) ;