Program: 89125
Project: 89125
Buggy source:
private void onSendingClusterPdu(){
  while (true) {
    try {
      ClusterServicePdu pdu=_clusterPduOutgoingQueue.take();
      ClusterService peerService=null;
      for (int i=0; i < 2; i++) {
        try {
          peerService=getPeerService(pdu.getDestPeer());
        }
 catch (        RemoteException e) {
          s_logger.error("String_Node_Str" + pdu.getDestPeer());
        }
        if (peerService != null) {
          try {
            if (s_logger.isDebugEnabled()) {
              s_logger.debug("String_Node_Str" + getSelfPeerName() + "String_Node_Str"+ pdu.getDestPeer()+ "String_Node_Str"+ pdu.getAgentId()+ "String_Node_Str"+ pdu.getSequenceId()+ "String_Node_Str"+ pdu.getAckSequenceId()+ "String_Node_Str"+ pdu.getJsonPackage());
            }
            long startTick=System.currentTimeMillis();
            String strResult=peerService.execute(pdu);
            if (s_logger.isDebugEnabled()) {
              s_logger.debug("String_Node_Str" + getSelfPeerName() + "String_Node_Str"+ pdu.getDestPeer()+ "String_Node_Str"+ (System.currentTimeMillis() - startTick)+ "String_Node_Str"+ pdu.getAgentId()+ "String_Node_Str"+ pdu.getSequenceId()+ "String_Node_Str"+ pdu.getAckSequenceId()+ "String_Node_Str"+ pdu.getJsonPackage());
            }
            if ("String_Node_Str".equals(strResult))             break;
          }
 catch (          RemoteException e) {
            invalidatePeerService(pdu.getDestPeer());
            if (s_logger.isInfoEnabled()) {
              s_logger.info("String_Node_Str" + pdu.getDestPeer() + "String_Node_Str"+ i+ "String_Node_Str"+ e.getMessage());
            }
          }
        }
      }
    }
 catch (    InterruptedException e) {
    }
catch (    Throwable e) {
      s_logger.error("String_Node_Str",e);
    }
  }
}

Fixed version (ground truth):
private void onSendingClusterPdu(){
  while (true) {
    try {
      ClusterServicePdu pdu=popOutgoingClusterPdu(1000);
      if (pdu == null)       continue;
      ClusterService peerService=null;
      for (int i=0; i < 2; i++) {
        try {
          peerService=getPeerService(pdu.getDestPeer());
        }
 catch (        RemoteException e) {
          s_logger.error("String_Node_Str" + pdu.getDestPeer());
        }
        if (peerService != null) {
          try {
            if (s_logger.isDebugEnabled()) {
              s_logger.debug("String_Node_Str" + getSelfPeerName() + "String_Node_Str"+ pdu.getDestPeer()+ "String_Node_Str"+ pdu.getAgentId()+ "String_Node_Str"+ pdu.getSequenceId()+ "String_Node_Str"+ pdu.getAckSequenceId()+ "String_Node_Str"+ pdu.getJsonPackage());
            }
            long startTick=System.currentTimeMillis();
            String strResult=peerService.execute(pdu);
            if (s_logger.isDebugEnabled()) {
              s_logger.debug("String_Node_Str" + getSelfPeerName() + "String_Node_Str"+ pdu.getDestPeer()+ "String_Node_Str"+ (System.currentTimeMillis() - startTick)+ "String_Node_Str"+ pdu.getAgentId()+ "String_Node_Str"+ pdu.getSequenceId()+ "String_Node_Str"+ pdu.getAckSequenceId()+ "String_Node_Str"+ pdu.getJsonPackage());
            }
            if ("String_Node_Str".equals(strResult))             break;
          }
 catch (          RemoteException e) {
            invalidatePeerService(pdu.getDestPeer());
            if (s_logger.isInfoEnabled()) {
              s_logger.info("String_Node_Str" + pdu.getDestPeer() + "String_Node_Str"+ i+ "String_Node_Str"+ e.getMessage());
            }
          }
        }
      }
    }
 catch (    Throwable e) {
      s_logger.error("String_Node_Str",e);
    }
  }
}