Program: 115957
Project: 115957
Buggy source:
public void handleMemberTerminatedEvent(MemberTerminatedEvent memberTerminatedEvent){
  String networkPartitionId=memberTerminatedEvent.getNetworkPartitionId();
  String memberId=memberTerminatedEvent.getMemberId();
  String clusterId=memberTerminatedEvent.getClusterId();
  String clusterInstanceId=memberTerminatedEvent.getClusterInstanceId();
  String partitionId=memberTerminatedEvent.getPartitionId();
  ClusterInstanceContext clusterLevelNetworkPartitionContext=getClusterInstanceContext(networkPartitionId,clusterInstanceId);
  ClusterLevelPartitionContext clusterMonitorPartitionContext=clusterLevelNetworkPartitionContext.getPartitionCtxt(partitionId);
  clusterMonitorPartitionContext.removeMemberStatsContext(memberId);
  if (clusterMonitorPartitionContext.removeTerminationPendingMember(memberId)) {
    if (log.isDebugEnabled()) {
      log.debug(String.format("String_Node_Str" + "String_Node_Str",memberId));
    }
  }
 else   if (clusterMonitorPartitionContext.removePendingMember(memberId)) {
    if (log.isDebugEnabled()) {
      log.debug(String.format("String_Node_Str" + "String_Node_Str",memberId));
    }
  }
 else   if (clusterMonitorPartitionContext.removeActiveMemberById(memberId)) {
    log.warn(String.format("String_Node_Str" + "String_Node_Str",memberId));
  }
 else   if (clusterMonitorPartitionContext.removeObsoleteMember(memberId)) {
    log.warn(String.format("String_Node_Str" + "String_Node_Str",memberId));
  }
 else {
    log.warn(String.format("String_Node_Str" + "String_Node_Str",memberId));
  }
  if (log.isDebugEnabled()) {
    log.debug(String.format("String_Node_Str" + "String_Node_Str",memberId));
  }
  ServiceReferenceHolder.getInstance().getClusterStatusProcessorChain().process(ClusterStatusTerminatedProcessor.class.getName(),clusterId,clusterInstanceId);
}

Fixed version (ground truth):
public void handleMemberTerminatedEvent(MemberTerminatedEvent memberTerminatedEvent){
  String networkPartitionId=memberTerminatedEvent.getNetworkPartitionId();
  String memberId=memberTerminatedEvent.getMemberId();
  String clusterId=memberTerminatedEvent.getClusterId();
  String clusterInstanceId=memberTerminatedEvent.getClusterInstanceId();
  String partitionId=memberTerminatedEvent.getPartitionId();
  ClusterInstanceContext clusterLevelNetworkPartitionContext=getClusterInstanceContext(networkPartitionId,clusterInstanceId);
  ClusterLevelPartitionContext clusterMonitorPartitionContext=clusterLevelNetworkPartitionContext.getPartitionCtxt(partitionId);
  if (clusterMonitorPartitionContext.removeTerminationPendingMember(memberId)) {
    if (log.isDebugEnabled()) {
      log.debug(String.format("String_Node_Str" + "String_Node_Str",memberId));
    }
  }
 else   if (clusterMonitorPartitionContext.removePendingMember(memberId)) {
    if (log.isDebugEnabled()) {
      log.debug(String.format("String_Node_Str" + "String_Node_Str",memberId));
    }
  }
 else   if (clusterMonitorPartitionContext.removeActiveMemberById(memberId)) {
    log.warn(String.format("String_Node_Str" + "String_Node_Str",memberId));
  }
 else   if (clusterMonitorPartitionContext.removeObsoleteMember(memberId)) {
    log.warn(String.format("String_Node_Str" + "String_Node_Str",memberId));
  }
 else {
    log.warn(String.format("String_Node_Str" + "String_Node_Str",memberId));
  }
  if (log.isDebugEnabled()) {
    log.debug(String.format("String_Node_Str" + "String_Node_Str",memberId));
  }
  ServiceReferenceHolder.getInstance().getClusterStatusProcessorChain().process(ClusterStatusTerminatedProcessor.class.getName(),clusterId,clusterInstanceId);
}