Program: 116762
Project: 116762
Buggy source:
@Override public void run(){
  log.info("String_Node_Str");
  while (true) {
    try {
      TextMessage message=HealthEventQueue.getInstance().take();
      String messageText=message.getText();
      if (log.isDebugEnabled())       log.debug("String_Node_Str" + messageText);
      Event event=jsonToEvent(messageText);
      if (log.isInfoEnabled()) {
        log.info(String.format("String_Node_Str",event.getEventName()));
      }
      if (Constants.AVERAGE_REQUESTS_IN_FLIGHT.equals(event.getEventName())) {
        String clusterId=event.getProperties().get("String_Node_Str");
        String networkPartitionId=event.getProperties().get("String_Node_Str");
        String value=event.getProperties().get("String_Node_Str");
        Float floatValue=Float.parseFloat(value);
        if (log.isDebugEnabled()) {
          log.debug(String.format("String_Node_Str",event.getEventName(),clusterId,networkPartitionId,value));
        }
        AutoscalerContext.getInstance().getMonitor(clusterId).getNetworkPartitionCtxt(networkPartitionId).setAverageRequestsInFlight(floatValue);
      }
 else       if (Constants.GRADIENT_OF_REQUESTS_IN_FLIGHT.equals(event.getEventName())) {
        String clusterId=event.getProperties().get("String_Node_Str");
        String networkPartitionId=event.getProperties().get("String_Node_Str");
        String value=event.getProperties().get("String_Node_Str");
        Float floatValue=Float.parseFloat(value);
        if (log.isDebugEnabled()) {
          log.debug(String.format("String_Node_Str",event.getEventName(),clusterId,networkPartitionId,value));
        }
        AutoscalerContext.getInstance().getMonitor(clusterId).getNetworkPartitionCtxt(networkPartitionId).setRequestsInFlightGradient(floatValue);
      }
 else       if (Constants.SECOND_DERIVATIVE_OF_REQUESTS_IN_FLIGHT.equals(event.getEventName())) {
        String clusterId=event.getProperties().get("String_Node_Str");
        String networkPartitionId=event.getProperties().get("String_Node_Str");
        String value=event.getProperties().get("String_Node_Str");
        Float floatValue=Float.parseFloat(value);
        if (log.isDebugEnabled()) {
          log.debug(String.format("String_Node_Str",event.getEventName(),clusterId,networkPartitionId,value));
        }
        AutoscalerContext.getInstance().getMonitor(clusterId).getNetworkPartitionCtxt(networkPartitionId).setRequestsInFlightSecondDerivative(floatValue);
      }
 else       if (Constants.MEMBER_FAULT_EVENT_NAME.equals(event.getEventName())) {
        String clusterId=event.getProperties().get("String_Node_Str");
        String memberId=event.getProperties().get("String_Node_Str");
        if (memberId == null || memberId.isEmpty()) {
          if (log.isErrorEnabled()) {
            log.error("String_Node_Str");
          }
        }
 else {
          handleMemberFaultEvent(clusterId,memberId);
        }
      }
 else       if (Constants.MEMBER_AVERAGE_LOAD_AVERAGE.equals(event.getEventName())) {
        LoadAverage loadAverage=findLoadAverage(event);
        if (loadAverage != null) {
          String value=event.getProperties().get("String_Node_Str");
          Float floatValue=Float.parseFloat(value);
          loadAverage.setAverage(floatValue);
          if (log.isDebugEnabled()) {
            log.debug(String.format("String_Node_Str",event.getProperties().get("String_Node_Str"),value));
          }
        }
      }
 else       if (Constants.MEMBER_SECOND_DERIVATIVE_OF_LOAD_AVERAGE.equals(event.getEventName())) {
        LoadAverage loadAverage=findLoadAverage(event);
        if (loadAverage != null) {
          String value=event.getProperties().get("String_Node_Str");
          Float floatValue=Float.parseFloat(value);
          loadAverage.setSecondDerivative(floatValue);
          if (log.isDebugEnabled()) {
            log.debug(String.format("String_Node_Str",event.getProperties().get("String_Node_Str"),value));
          }
        }
      }
 else       if (Constants.MEMBER_GRADIENT_LOAD_AVERAGE.equals(event.getEventName())) {
        LoadAverage loadAverage=findLoadAverage(event);
        if (loadAverage != null) {
          String value=event.getProperties().get("String_Node_Str");
          Float floatValue=Float.parseFloat(value);
          loadAverage.setGradient(floatValue);
          if (log.isDebugEnabled()) {
            log.debug(String.format("String_Node_Str",event.getProperties().get("String_Node_Str"),value));
          }
        }
      }
 else       if (Constants.MEMBER_AVERAGE_MEMORY_CONSUMPTION.equals(event.getEventName())) {
        MemoryConsumption memoryConsumption=findMemoryConsumption(event);
        if (memoryConsumption != null) {
          String value=event.getProperties().get("String_Node_Str");
          Float floatValue=Float.parseFloat(value);
          memoryConsumption.setAverage(floatValue);
          if (log.isDebugEnabled()) {
            log.debug(String.format("String_Node_Str",event.getProperties().get("String_Node_Str"),value));
          }
        }
      }
 else       if (Constants.MEMBER_SECOND_DERIVATIVE_OF_MEMORY_CONSUMPTION.equals(event.getEventName())) {
        MemoryConsumption memoryConsumption=findMemoryConsumption(event);
        if (memoryConsumption != null) {
          String value=event.getProperties().get("String_Node_Str");
          Float floatValue=Float.parseFloat(value);
          memoryConsumption.setSecondDerivative(floatValue);
          if (log.isDebugEnabled()) {
            log.debug(String.format("String_Node_Str",event.getProperties().get("String_Node_Str"),value));
          }
        }
      }
 else       if (Constants.MEMBER_GRADIENT_MEMORY_CONSUMPTION.equals(event.getEventName())) {
        MemoryConsumption memoryConsumption=findMemoryConsumption(event);
        if (memoryConsumption != null) {
          String value=event.getProperties().get("String_Node_Str");
          Float floatValue=Float.parseFloat(value);
          memoryConsumption.setGradient(floatValue);
          if (log.isDebugEnabled()) {
            log.debug(String.format("String_Node_Str",event.getProperties().get("String_Node_Str"),value));
          }
        }
      }
 else       if (Constants.AVERAGE_LOAD_AVERAGE.equals(event.getEventName())) {
      }
 else       if (Constants.SECOND_DERIVATIVE_OF_LOAD_AVERAGE.equals(event.getEventName())) {
      }
 else       if (Constants.GRADIENT_LOAD_AVERAGE.equals(event.getEventName())) {
      }
 else       if (Constants.AVERAGE_MEMORY_CONSUMPTION.equals(event.getEventName())) {
      }
 else       if (Constants.SECOND_DERIVATIVE_OF_MEMORY_CONSUMPTION.equals(event.getEventName())) {
      }
 else       if (Constants.GRADIENT_MEMORY_CONSUMPTION.equals(event.getEventName())) {
      }
    }
 catch (    Exception e) {
      log.error("String_Node_Str",e);
    }
  }
}

Fixed version (ground truth):
@Override public void run(){
  log.info("String_Node_Str");
  while (true) {
    try {
      TextMessage message=HealthEventQueue.getInstance().take();
      String messageText=message.getText();
      if (log.isDebugEnabled())       log.debug("String_Node_Str" + messageText);
      Event event=jsonToEvent(messageText);
      if (log.isInfoEnabled()) {
        log.info(String.format("String_Node_Str",event.getEventName()));
      }
      if (Constants.AVERAGE_REQUESTS_IN_FLIGHT.equals(event.getEventName())) {
        String clusterId=event.getProperties().get("String_Node_Str");
        String networkPartitionId=event.getProperties().get("String_Node_Str");
        String value=event.getProperties().get("String_Node_Str");
        Float floatValue=Float.parseFloat(value);
        if (log.isDebugEnabled()) {
          log.debug(String.format("String_Node_Str",event.getEventName(),clusterId,networkPartitionId,value));
        }
        AutoscalerContext.getInstance().getMonitor(clusterId).getNetworkPartitionCtxt(networkPartitionId).setAverageRequestsInFlight(floatValue);
      }
 else       if (Constants.GRADIENT_OF_REQUESTS_IN_FLIGHT.equals(event.getEventName())) {
        String clusterId=event.getProperties().get("String_Node_Str");
        String networkPartitionId=event.getProperties().get("String_Node_Str");
        String value=event.getProperties().get("String_Node_Str");
        Float floatValue=Float.parseFloat(value);
        if (log.isDebugEnabled()) {
          log.debug(String.format("String_Node_Str",event.getEventName(),clusterId,networkPartitionId,value));
        }
        AutoscalerContext.getInstance().getMonitor(clusterId).getNetworkPartitionCtxt(networkPartitionId).setRequestsInFlightGradient(floatValue);
      }
 else       if (Constants.SECOND_DERIVATIVE_OF_REQUESTS_IN_FLIGHT.equals(event.getEventName())) {
        String clusterId=event.getProperties().get("String_Node_Str");
        String networkPartitionId=event.getProperties().get("String_Node_Str");
        String value=event.getProperties().get("String_Node_Str");
        Float floatValue=Float.parseFloat(value);
        if (log.isDebugEnabled()) {
          log.debug(String.format("String_Node_Str",event.getEventName(),clusterId,networkPartitionId,value));
        }
        AutoscalerContext.getInstance().getMonitor(clusterId).getNetworkPartitionCtxt(networkPartitionId).setRequestsInFlightSecondDerivative(floatValue);
      }
 else       if (Constants.MEMBER_FAULT_EVENT_NAME.equals(event.getEventName())) {
        String clusterId=event.getProperties().get("String_Node_Str");
        String memberId=event.getProperties().get("String_Node_Str");
        if (memberId == null || memberId.isEmpty()) {
          if (log.isErrorEnabled()) {
            log.error("String_Node_Str");
          }
        }
 else {
          handleMemberFaultEvent(clusterId,memberId);
        }
      }
 else       if (Constants.MEMBER_AVERAGE_LOAD_AVERAGE.equals(event.getEventName())) {
        LoadAverage loadAverage=findLoadAverage(event);
        if (loadAverage != null) {
          String value=event.getProperties().get("String_Node_Str");
          Float floatValue=Float.parseFloat(value);
          loadAverage.setAverage(floatValue);
          if (log.isDebugEnabled()) {
            log.debug(String.format("String_Node_Str",event,event.getProperties().get("String_Node_Str"),value));
          }
        }
      }
 else       if (Constants.MEMBER_SECOND_DERIVATIVE_OF_LOAD_AVERAGE.equals(event.getEventName())) {
        LoadAverage loadAverage=findLoadAverage(event);
        if (loadAverage != null) {
          String value=event.getProperties().get("String_Node_Str");
          Float floatValue=Float.parseFloat(value);
          loadAverage.setSecondDerivative(floatValue);
          if (log.isDebugEnabled()) {
            log.debug(String.format("String_Node_Str",event,event.getProperties().get("String_Node_Str"),value));
          }
        }
      }
 else       if (Constants.MEMBER_GRADIENT_LOAD_AVERAGE.equals(event.getEventName())) {
        LoadAverage loadAverage=findLoadAverage(event);
        if (loadAverage != null) {
          String value=event.getProperties().get("String_Node_Str");
          Float floatValue=Float.parseFloat(value);
          loadAverage.setGradient(floatValue);
          if (log.isDebugEnabled()) {
            log.debug(String.format("String_Node_Str",event,event.getProperties().get("String_Node_Str"),value));
          }
        }
      }
 else       if (Constants.MEMBER_AVERAGE_MEMORY_CONSUMPTION.equals(event.getEventName())) {
        MemoryConsumption memoryConsumption=findMemoryConsumption(event);
        if (memoryConsumption != null) {
          String value=event.getProperties().get("String_Node_Str");
          Float floatValue=Float.parseFloat(value);
          memoryConsumption.setAverage(floatValue);
          if (log.isDebugEnabled()) {
            log.debug(String.format("String_Node_Str",event,event.getProperties().get("String_Node_Str"),value));
          }
        }
      }
 else       if (Constants.MEMBER_SECOND_DERIVATIVE_OF_MEMORY_CONSUMPTION.equals(event.getEventName())) {
        MemoryConsumption memoryConsumption=findMemoryConsumption(event);
        if (memoryConsumption != null) {
          String value=event.getProperties().get("String_Node_Str");
          Float floatValue=Float.parseFloat(value);
          memoryConsumption.setSecondDerivative(floatValue);
          if (log.isDebugEnabled()) {
            log.debug(String.format("String_Node_Str",event,event.getProperties().get("String_Node_Str"),value));
          }
        }
      }
 else       if (Constants.MEMBER_GRADIENT_MEMORY_CONSUMPTION.equals(event.getEventName())) {
        MemoryConsumption memoryConsumption=findMemoryConsumption(event);
        if (memoryConsumption != null) {
          String value=event.getProperties().get("String_Node_Str");
          Float floatValue=Float.parseFloat(value);
          memoryConsumption.setGradient(floatValue);
          if (log.isDebugEnabled()) {
            log.debug(String.format("String_Node_Str",event,event.getProperties().get("String_Node_Str"),value));
          }
        }
      }
 else       if (Constants.AVERAGE_LOAD_AVERAGE.equals(event.getEventName())) {
      }
 else       if (Constants.SECOND_DERIVATIVE_OF_LOAD_AVERAGE.equals(event.getEventName())) {
      }
 else       if (Constants.GRADIENT_LOAD_AVERAGE.equals(event.getEventName())) {
      }
 else       if (Constants.AVERAGE_MEMORY_CONSUMPTION.equals(event.getEventName())) {
      }
 else       if (Constants.SECOND_DERIVATIVE_OF_MEMORY_CONSUMPTION.equals(event.getEventName())) {
      }
 else       if (Constants.GRADIENT_MEMORY_CONSUMPTION.equals(event.getEventName())) {
      }
    }
 catch (    Exception e) {
      log.error("String_Node_Str",e);
    }
  }
}