nus-yam/ex-repair huggingface dataset:
Program: 116527
Project: 116527
Buggy source:
private void handleMemberFaultEvent(String clusterId,String memberId){
  try {
    AbstractClusterMonitor monitor=getMonitor(clusterId);
    NetworkPartitionContext nwPartitionCtxt;
    try {
      TopologyManager.acquireReadLock();
      Member member=findMember(memberId);
      if (null == member) {
        return;
      }
      if (!member.isActive()) {
        if (log.isDebugEnabled()) {
          log.debug(String.format("String_Node_Str" + "String_Node_Str",memberId));
        }
        return;
      }
      if (monitor != null) {
        nwPartitionCtxt=monitor.getNetworkPartitionCtxt(member);
      }
 else {
        return;
      }
    }
  finally {
      TopologyManager.releaseReadLock();
    }
    String partitionId=monitor.getPartitionOfMember(memberId);
    PartitionContext partitionCtxt=nwPartitionCtxt.getPartitionCtxt(partitionId);
    if (!partitionCtxt.activeMemberExist(memberId)) {
      if (log.isDebugEnabled()) {
        log.debug(String.format("String_Node_Str",memberId));
      }
      return;
    }
    CloudControllerClient ccClient=CloudControllerClient.getInstance();
    ccClient.terminate(memberId);
    partitionCtxt.removeActiveMemberById(memberId);
    StatusChecker.getInstance().onMemberFaultEvent(clusterId,"String_Node_Str",partitionCtxt);
    if (log.isInfoEnabled()) {
      log.info(String.format("String_Node_Str",memberId,partitionId,clusterId));
    }
  }
 catch (  TerminationException e) {
    log.error(e);
  }
}

Fixed version (ground truth):
private void handleMemberFaultEvent(String clusterId,String memberId){
  try {
    AbstractClusterMonitor monitor=getMonitor(clusterId);
    NetworkPartitionContext nwPartitionCtxt;
    TopologyManager.acquireReadLockForServices();
    try {
      Member member=findMember(memberId);
      if (null == member) {
        return;
      }
      if (!member.isActive()) {
        if (log.isDebugEnabled()) {
          log.debug(String.format("String_Node_Str" + "String_Node_Str",memberId));
        }
        return;
      }
      if (monitor != null) {
        nwPartitionCtxt=monitor.getNetworkPartitionCtxt(member);
      }
 else {
        return;
      }
    }
  finally {
      TopologyManager.releaseReadLockForServices();
    }
    String partitionId=monitor.getPartitionOfMember(memberId);
    PartitionContext partitionCtxt=nwPartitionCtxt.getPartitionCtxt(partitionId);
    if (!partitionCtxt.activeMemberExist(memberId)) {
      if (log.isDebugEnabled()) {
        log.debug(String.format("String_Node_Str",memberId));
      }
      return;
    }
    CloudControllerClient ccClient=CloudControllerClient.getInstance();
    ccClient.terminate(memberId);
    partitionCtxt.removeActiveMemberById(memberId);
    StatusChecker.getInstance().onMemberFaultEvent(clusterId,"String_Node_Str",partitionCtxt);
    if (log.isInfoEnabled()) {
      log.info(String.format("String_Node_Str",memberId,partitionId,clusterId));
    }
  }
 catch (  TerminationException e) {
    log.error(e);
  }
}
Program: 116528
Project: 116528
Buggy source:
private Member findMember(String memberId){
  try {
    TopologyManager.acquireReadLock();
    for (    Service service : TopologyManager.getTopology().getServices()) {
      for (      Cluster cluster : service.getClusters()) {
        if (cluster.memberExists(memberId)) {
          return cluster.getMember(memberId);
        }
      }
    }
    return null;
  }
  finally {
    TopologyManager.releaseReadLock();
  }
}

Fixed version (ground truth):
private Member findMember(String memberId){
  TopologyManager.acquireReadLockForServices();
  try {
    for (    Service service : TopologyManager.getTopology().getServices()) {
      for (      Cluster cluster : service.getClusters()) {
        if (cluster.memberExists(memberId)) {
          return cluster.getMember(memberId);
        }
      }
    }
    return null;
  }
  finally {
    TopologyManager.releaseReadLockForServices();
  }
}
Program: 116529
Project: 116529
Buggy source:
public void run(){
  ApplicationMonitor applicationMonitor=null;
  int retries=5;
  boolean success=false;
  do {
    try {
      Thread.sleep(5000);
    }
 catch (    InterruptedException e1) {
    }
    try {
      long start=System.currentTimeMillis();
      if (log.isDebugEnabled()) {
        log.debug("String_Node_Str" + application.getId());
      }
      applicationMonitor=AutoscalerUtil.getApplicationMonitor(application);
      long end=System.currentTimeMillis();
      log.info("String_Node_Str" + (end - start) / 1000);
      success=true;
    }
 catch (    Exception e) {
      String msg="String_Node_Str" + application.getId();
      log.debug(msg,e);
      retries--;
    }
  }
 while (!success && retries != 0);
  if (applicationMonitor == null) {
    String msg="String_Node_Str" + "String_Node_Str" + applicationMonitor.getId();
    log.error(msg);
    throw new RuntimeException(msg);
  }
  AutoscalerContext.getInstance().addAppMonitor(applicationMonitor);
  if (log.isInfoEnabled()) {
    log.info(String.format("String_Node_Str" + "String_Node_Str",applicationMonitor.getId()));
  }
}

Fixed version (ground truth):
public void run(){
  ApplicationMonitor applicationMonitor=null;
  int retries=5;
  boolean success=false;
  do {
    try {
      Thread.sleep(5000);
    }
 catch (    InterruptedException e1) {
    }
    try {
      long start=System.currentTimeMillis();
      if (log.isDebugEnabled()) {
        log.debug("String_Node_Str" + application.getId());
      }
      applicationMonitor=AutoscalerUtil.getApplicationMonitor(application);
      long end=System.currentTimeMillis();
      log.info("String_Node_Str" + (end - start) / 1000);
      success=true;
    }
 catch (    Exception e) {
      String msg="String_Node_Str";
      log.warn(msg,e);
      retries--;
    }
  }
 while (!success && retries != 0);
  if (applicationMonitor == null) {
    String msg="String_Node_Str" + "String_Node_Str" + applicationMonitor.getId();
    log.error(msg);
    throw new RuntimeException(msg);
  }
  AutoscalerContext.getInstance().addAppMonitor(applicationMonitor);
  if (log.isInfoEnabled()) {
    log.info(String.format("String_Node_Str" + "String_Node_Str",applicationMonitor.getId()));
  }
}
Program: 116531
Project: 116531
Buggy source:
private void populateNewCartridge(Cartridge cartridge,Cartridge cartridgeToBeRemoved){
  List<IaasProvider> newIaasProviders=cartridge.getIaases();
  Map<String,IaasProvider> oldPartitionToIaasMap=cartridgeToBeRemoved.getPartitionToIaasProvider();
  for (  String partitionId : oldPartitionToIaasMap.keySet()) {
    IaasProvider oldIaasProvider=oldPartitionToIaasMap.get(partitionId);
    if (newIaasProviders.contains(oldIaasProvider)) {
      if (log.isDebugEnabled()) {
        log.debug("String_Node_Str" + "String_Node_Str" + partitionId + "String_Node_Str"+ cartridge.getType());
      }
      cartridge.addIaasProvider(partitionId,newIaasProviders.get(newIaasProviders.indexOf(oldIaasProvider)));
    }
  }
}

Fixed version (ground truth):
private void populateNewCartridge(Cartridge cartridge,Cartridge cartridgeToBeRemoved){
  List<IaasProvider> newIaasProviders=cartridge.getIaases();
  Map<String,IaasProvider> oldPartitionToIaasMap=cartridgeToBeRemoved.getPartitionToIaasProvider();
  for (  Entry<String,IaasProvider> entry : oldPartitionToIaasMap.entrySet()) {
    if (entry == null) {
      continue;
    }
    String partitionId=entry.getKey();
    IaasProvider oldIaasProvider=entry.getValue();
    if (newIaasProviders.contains(oldIaasProvider)) {
      if (log.isDebugEnabled()) {
        log.debug("String_Node_Str" + "String_Node_Str" + partitionId + "String_Node_Str"+ cartridge.getType());
      }
      cartridge.addIaasProvider(partitionId,newIaasProviders.get(newIaasProviders.indexOf(oldIaasProvider)));
    }
  }
}
Program: 116532
Project: 116532
Buggy source:
@Override public String createVolume(int sizeGB,String snapshotId){
  IaasProvider iaasInfo=getIaasProvider();
  String region=ComputeServiceBuilderUtil.extractRegion(iaasInfo);
  String zone=ComputeServiceBuilderUtil.extractZone(iaasInfo);
  if (region == null || iaasInfo == null) {
    log.fatal(String.format("String_Node_Str",region,iaasInfo));
    return null;
  }
  ComputeServiceContext context=iaasInfo.getComputeService().getContext();
  NovaApi novaApi=context.unwrapApi(NovaApi.class);
  VolumeApi volumeApi=novaApi.getVolumeExtensionForZone(region).get();
  Volume volume;
  if (StringUtils.isEmpty(snapshotId)) {
    if (log.isDebugEnabled()) {
      log.info("String_Node_Str" + zone);
    }
    volume=volumeApi.create(sizeGB,CreateVolumeOptions.Builder.availabilityZone(zone));
  }
 else {
    if (log.isDebugEnabled()) {
      log.info("String_Node_Str" + zone + "String_Node_Str"+ snapshotId);
    }
    volume=volumeApi.create(sizeGB,CreateVolumeOptions.Builder.availabilityZone(zone).snapshotId(snapshotId));
  }
  if (volume == null) {
    log.fatal(String.format("String_Node_Str",region,zone,iaasInfo));
    return null;
  }
  String volumeId=volume.getId();
  log.info(String.format("String_Node_Str",volume.getId(),region,zone,iaasInfo,volume.getId()));
  return volumeId;
}

Fixed version (ground truth):
@Override public String createVolume(int sizeGB,String snapshotId){
  IaasProvider iaasInfo=getIaasProvider();
  if (iaasInfo == null) {
    log.fatal(String.format("String_Node_Str",snapshotId));
    return null;
  }
  String region=ComputeServiceBuilderUtil.extractRegion(iaasInfo);
  String zone=ComputeServiceBuilderUtil.extractZone(iaasInfo);
  if (region == null) {
    log.fatal(String.format("String_Node_Str",iaasInfo));
    return null;
  }
  ComputeServiceContext context=iaasInfo.getComputeService().getContext();
  NovaApi novaApi=context.unwrapApi(NovaApi.class);
  VolumeApi volumeApi=novaApi.getVolumeExtensionForZone(region).get();
  Volume volume;
  if (StringUtils.isEmpty(snapshotId)) {
    if (log.isDebugEnabled()) {
      log.info("String_Node_Str" + zone);
    }
    volume=volumeApi.create(sizeGB,CreateVolumeOptions.Builder.availabilityZone(zone));
  }
 else {
    if (log.isDebugEnabled()) {
      log.info("String_Node_Str" + zone + "String_Node_Str"+ snapshotId);
    }
    volume=volumeApi.create(sizeGB,CreateVolumeOptions.Builder.availabilityZone(zone).snapshotId(snapshotId));
  }
  if (volume == null) {
    log.fatal(String.format("String_Node_Str",region,zone,iaasInfo));
    return null;
  }
  String volumeId=volume.getId();
  log.info(String.format("String_Node_Str",volume.getId(),region,zone,iaasInfo,volume.getId()));
  return volumeId;
}
Program: 116534
Project: 116534
Buggy source:
@Override public void detachVolume(String instanceId,String volumeId){
  IaasProvider iaasInfo=getIaasProvider();
  ComputeServiceContext context=iaasInfo.getComputeService().getContext();
  String region=ComputeServiceBuilderUtil.extractRegion(iaasInfo);
  if (region == null) {
    log.fatal(String.format("String_Node_Str",volumeId,instanceId,region,iaasInfo));
    return;
  }
  if (log.isDebugEnabled()) {
    log.debug(String.format("String_Node_Str",volumeId,instanceId));
  }
  NovaApi novaApi=context.unwrapApi(NovaApi.class);
  VolumeAttachmentApi api=novaApi.getVolumeAttachmentExtensionForZone(region).get();
  if (api.detachVolumeFromServer(volumeId,instanceId)) {
    log.info(String.format("String_Node_Str",volumeId,instanceId,region,iaasInfo));
  }
 else {
    log.error(String.format("String_Node_Str",volumeId,instanceId,region,iaasInfo));
  }
}

Fixed version (ground truth):
@Override public void detachVolume(String instanceId,String volumeId){
  IaasProvider iaasInfo=getIaasProvider();
  ComputeServiceContext context=iaasInfo.getComputeService().getContext();
  String region=ComputeServiceBuilderUtil.extractRegion(iaasInfo);
  if (region == null) {
    log.fatal(String.format("String_Node_Str",volumeId,instanceId,iaasInfo));
    return;
  }
  if (log.isDebugEnabled()) {
    log.debug(String.format("String_Node_Str",volumeId,instanceId));
  }
  NovaApi novaApi=context.unwrapApi(NovaApi.class);
  VolumeAttachmentApi api=novaApi.getVolumeAttachmentExtensionForZone(region).get();
  if (api.detachVolumeFromServer(volumeId,instanceId)) {
    log.info(String.format("String_Node_Str",volumeId,instanceId,region,iaasInfo));
  }
 else {
    log.error(String.format("String_Node_Str",volumeId,instanceId,region,iaasInfo));
  }
}
Program: 116535
Project: 116535
Buggy source:
@Override public void deleteVolume(String volumeId){
  IaasProvider iaasInfo=getIaasProvider();
  ComputeServiceContext context=iaasInfo.getComputeService().getContext();
  String region=ComputeServiceBuilderUtil.extractRegion(iaasInfo);
  if (region == null) {
    log.fatal(String.format("String_Node_Str",volumeId,region,iaasInfo));
    return;
  }
  NovaApi novaApi=context.unwrapApi(NovaApi.class);
  VolumeApi api=novaApi.getVolumeExtensionForZone(region).get();
  if (api.delete(volumeId)) {
    log.info(String.format("String_Node_Str",volumeId,region,iaasInfo));
  }
}

Fixed version (ground truth):
@Override public void deleteVolume(String volumeId){
  IaasProvider iaasInfo=getIaasProvider();
  ComputeServiceContext context=iaasInfo.getComputeService().getContext();
  String region=ComputeServiceBuilderUtil.extractRegion(iaasInfo);
  if (region == null) {
    log.fatal(String.format("String_Node_Str",volumeId,iaasInfo));
    return;
  }
  NovaApi novaApi=context.unwrapApi(NovaApi.class);
  VolumeApi api=novaApi.getVolumeExtensionForZone(region).get();
  if (api.delete(volumeId)) {
    log.info(String.format("String_Node_Str",volumeId,region,iaasInfo));
  }
}
Program: 116536
Project: 116536
Buggy source:
private boolean waitForStatus(String volumeId,Volume.Status expectedStatus,int timeoutInMins) throws TimeoutException {
  long timeout=1000 * 60 * timeoutInMins;
  long timout=System.currentTimeMillis() + timeout;
  IaasProvider iaasInfo=getIaasProvider();
  String region=ComputeServiceBuilderUtil.extractRegion(iaasInfo);
  ComputeServiceContext context=iaasInfo.getComputeService().getContext();
  ;
  NovaApi novaApi=context.unwrapApi(NovaApi.class);
  VolumeApi volumeApi=novaApi.getVolumeExtensionForZone(region).get();
  Volume.Status volumeStatus=this.getVolumeStatus(volumeApi,volumeId);
  while (volumeStatus != expectedStatus) {
    try {
      if (log.isDebugEnabled()) {
        log.debug(String.format("String_Node_Str",volumeId,expectedStatus,volumeStatus));
      }
      if (volumeStatus == Volume.Status.ERROR) {
        log.error("String_Node_Str" + volumeId + "String_Node_Str");
        return false;
      }
      Thread.sleep(1000);
      volumeStatus=this.getVolumeStatus(volumeApi,volumeId);
      if (System.currentTimeMillis() > timout) {
        throw new TimeoutException();
      }
    }
 catch (    InterruptedException e) {
    }
  }
  if (log.isDebugEnabled()) {
    log.debug(String.format("String_Node_Str",volumeId,expectedStatus));
  }
  return true;
}

Fixed version (ground truth):
private boolean waitForStatus(String volumeId,Volume.Status expectedStatus,int timeoutInMins) throws TimeoutException {
  int timeout=1000 * 60 * timeoutInMins;
  long timout=System.currentTimeMillis() + timeout;
  IaasProvider iaasInfo=getIaasProvider();
  String region=ComputeServiceBuilderUtil.extractRegion(iaasInfo);
  ComputeServiceContext context=iaasInfo.getComputeService().getContext();
  ;
  NovaApi novaApi=context.unwrapApi(NovaApi.class);
  VolumeApi volumeApi=novaApi.getVolumeExtensionForZone(region).get();
  Volume.Status volumeStatus=this.getVolumeStatus(volumeApi,volumeId);
  while (volumeStatus != expectedStatus) {
    try {
      if (log.isDebugEnabled()) {
        log.debug(String.format("String_Node_Str",volumeId,expectedStatus,volumeStatus));
      }
      if (volumeStatus == Volume.Status.ERROR) {
        log.error("String_Node_Str" + volumeId + "String_Node_Str");
        return false;
      }
      Thread.sleep(1000);
      volumeStatus=this.getVolumeStatus(volumeApi,volumeId);
      if (System.currentTimeMillis() > timout) {
        throw new TimeoutException();
      }
    }
 catch (    InterruptedException e) {
    }
  }
  if (log.isDebugEnabled()) {
    log.debug(String.format("String_Node_Str",volumeId,expectedStatus));
  }
  return true;
}
Program: 116538
Project: 116538
Buggy source:
public void undeployServiceGroup(String name) throws InvalidServiceGroupException {
  if (log.isDebugEnabled()) {
    log.debug("String_Node_Str" + name);
  }
  ServiceGroup serviceGroup=null;
  if ((serviceGroup=dataHolder.getServiceGroup(name)) != null) {
    if (dataHolder.getServiceGroups().remove(name)) {
      persist();
      if (log.isInfoEnabled()) {
        log.info("String_Node_Str" + serviceGroup);
      }
      return;
    }
  }
  String msg="String_Node_Str" + name + "String_Node_Str";
  log.error(msg);
  throw new InvalidServiceGroupException(msg);
}

Fixed version (ground truth):
public void undeployServiceGroup(String name) throws InvalidServiceGroupException {
  if (log.isDebugEnabled()) {
    log.debug("String_Node_Str" + name);
  }
  ServiceGroup serviceGroup=null;
  serviceGroup=dataHolder.getServiceGroup(name);
  if (serviceGroup != null) {
    if (dataHolder.getServiceGroups().remove(serviceGroup)) {
      persist();
      if (log.isInfoEnabled()) {
        log.info("String_Node_Str" + serviceGroup);
      }
      return;
    }
  }
  String msg="String_Node_Str" + name + "String_Node_Str";
  log.error(msg);
  throw new InvalidServiceGroupException(msg);
}
Program: 116542
Project: 116542
Buggy source:
@Override public void startDependency(){
  preOrderTraverse=DependencyBuilder.getStartupOrder(component);
  if (!preOrderTraverse.isEmpty()) {
    String dependency=preOrderTraverse.poll();
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str" + dependency + "String_Node_Str");
    }
    if (dependency.contains("String_Node_Str")) {
      for (      Group group : component.getAliasToGroupMap().values()) {
        if (group.getName().equals(dependency.substring(6))) {
          startGroupMonitor(this,group.getAlias(),component);
        }
      }
    }
 else     if (dependency.contains("String_Node_Str")) {
      for (      ClusterDataHolder dataHolder : component.getClusterDataMap().values()) {
        if (dataHolder.getServiceType().equals(dependency.substring(10))) {
          String clusterId=dataHolder.getClusterId();
          String serviceName=dataHolder.getServiceType();
          Cluster cluster=null;
          cluster=TopologyManager.getTopology().getService(serviceName).getCluster(clusterId);
          if (cluster != null) {
            startClusterMonitor(this,cluster);
          }
 else {
          }
        }
      }
    }
  }
 else {
    log.info("String_Node_Str" + this.id + "String_Node_Str");
  }
}

Fixed version (ground truth):
@Override public void startDependency(){
  preOrderTraverse=DependencyBuilder.getStartupOrder(component);
  if (!preOrderTraverse.isEmpty()) {
    String dependency=preOrderTraverse.poll();
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str" + dependency + "String_Node_Str");
    }
    if (dependency.contains("String_Node_Str")) {
      for (      Group group : component.getAliasToGroupMap().values()) {
        if (group.getName().equals(dependency.substring(6))) {
          startGroupMonitor(this,group.getAlias(),component);
        }
      }
    }
 else     if (dependency.contains("String_Node_Str")) {
      ClusterDataHolder clusterDataHolder=component.getClusterData(dependency.substring(10));
      String clusterId=clusterDataHolder.getClusterId();
      String serviceName=clusterDataHolder.getServiceType();
      Cluster cluster=null;
      Topology topology=TopologyManager.getTopology();
      if (topology.serviceExists(serviceName)) {
        Service service=topology.getService(serviceName);
        if (service.clusterExists(clusterId)) {
          cluster=service.getCluster(clusterId);
          if (log.isDebugEnabled()) {
            log.debug("String_Node_Str" + clusterId);
          }
          startClusterMonitor(this,cluster);
        }
 else {
          log.warn("String_Node_Str" + clusterId + "String_Node_Str"+ "String_Node_Str"+ serviceName);
        }
      }
 else {
        log.warn("String_Node_Str" + serviceName + "String_Node_Str");
      }
    }
  }
 else {
    log.info("String_Node_Str" + this.id + "String_Node_Str");
  }
}
Program: 116546
Project: 116546
Buggy source:
public Cluster(String serviceName,String clusterId,String deploymentPolicyName,String autoscalePolicyName){
  this.serviceName=serviceName;
  this.clusterId=clusterId;
  this.deploymentPolicyName=deploymentPolicyName;
  this.autoscalePolicyName=autoscalePolicyName;
  this.hostNames=new ArrayList<String>();
  this.memberMap=new HashMap<String,Member>();
}

Fixed version (ground truth):
public Cluster(String serviceName,String clusterId,String deploymentPolicyName,String autoscalePolicyName,String appId){
  this.serviceName=serviceName;
  this.clusterId=clusterId;
  this.deploymentPolicyName=deploymentPolicyName;
  this.autoscalePolicyName=autoscalePolicyName;
  this.hostNames=new ArrayList<String>();
  this.memberMap=new HashMap<String,Member>();
  this.appId=appId;
}
Program: 116547
Project: 116547
Buggy source:
@Override public void run(){
  try {
    if (log.isInfoEnabled()) {
      log.info("String_Node_Str");
    }
    while (!terminated) {
      try {
        TextMessage message=messageQueue.take();
        String messageText=message.getText();
        if (log.isDebugEnabled()) {
          log.debug("String_Node_Str" + messageText);
        }
        EventMessage eventMessage=jsonToEventMessage(messageText);
        if (eventMessage == null) {
          log.error("String_Node_Str");
          continue;
        }
        String type=eventMessage.getEventName();
        String json=eventMessage.getMessage();
        if (log.isDebugEnabled()) {
          log.debug(String.format("String_Node_Str",type));
        }
        if (log.isDebugEnabled()) {
          log.debug(String.format("String_Node_Str",type));
        }
        processorChain.process(type,json,null);
      }
 catch (      Exception e) {
        log.error("String_Node_Str",e);
      }
    }
  }
 catch (  Exception e) {
    if (log.isErrorEnabled()) {
      log.error("String_Node_Str",e);
    }
  }
}

Fixed version (ground truth):
@Override public void run(){
  try {
    if (log.isInfoEnabled()) {
      log.info("String_Node_Str");
    }
    while (!terminated) {
      try {
        TextMessage message=messageQueue.take();
        String type=message.getStringProperty(Constants.EVENT_CLASS_NAME);
        String json=message.getText();
        if (log.isDebugEnabled()) {
          log.debug(String.format("String_Node_Str",type));
        }
        if (log.isDebugEnabled()) {
          log.debug(String.format("String_Node_Str",type));
        }
        processorChain.process(type,json,null);
      }
 catch (      Exception e) {
        log.error("String_Node_Str",e);
      }
    }
  }
 catch (  Exception e) {
    if (log.isErrorEnabled()) {
      log.error("String_Node_Str",e);
    }
  }
}
Program: 116548
Project: 116548
Buggy source:
public static synchronized MqttClient getMQTTConClient(){
  if (topicClient == null) {
    String broker=mqttProp.getProperty("String_Node_Str",MQTTURL);
    String clientId=mqttProp.getProperty("String_Node_Str",CLIENT_ID);
    MemoryPersistence persistence=new MemoryPersistence();
    try {
      topicClient=new MqttClient(broker,clientId,persistence);
      MqttConnectOptions connOpts=new MqttConnectOptions();
      connOpts.setCleanSession(true);
      if (log.isDebugEnabled()) {
        log.debug("String_Node_Str");
      }
    }
 catch (    MqttException me) {
      log.error("String_Node_Str",me);
    }
  }
  return topicClient;
}

Fixed version (ground truth):
public static synchronized MqttClient getMQTTConClient(){
  if (topicClient == null) {
    String broker=mqttProp.getProperty("String_Node_Str",MQTTURL);
    String clientId=mqttProp.getProperty("String_Node_Str",CLIENT_ID);
    MemoryPersistence persistence=new MemoryPersistence();
    try {
      topicClient=new MqttClient(broker,clientId,persistence);
      if (log.isDebugEnabled()) {
        log.debug("String_Node_Str");
      }
    }
 catch (    MqttException me) {
      log.error("String_Node_Str",me);
    }
  }
  return topicClient;
}
Program: 116549
Project: 116549
Buggy source:
public static synchronized MqttClient getMQTTSubClient(String identifier){
  String broker=mqttProp.getProperty("String_Node_Str",MQTTURL);
  String tempFile=mqttProp.getProperty("String_Node_Str",TMPFILELOCATION);
  MqttDefaultFilePersistence persistence=new MqttDefaultFilePersistence(tempFile);
  try {
    MqttConnectOptions connOpts=new MqttConnectOptions();
    connOpts.setCleanSession(true);
    topicClientSub=new MqttClient(broker,identifier,persistence);
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str");
    }
  }
 catch (  MqttException me) {
    log.error("String_Node_Str",me);
  }
  return topicClientSub;
}

Fixed version (ground truth):
public static synchronized MqttClient getMQTTSubClient(String identifier) throws MqttException {
  String broker=mqttProp.getProperty("String_Node_Str",MQTTURL);
  String tempFile=mqttProp.getProperty("String_Node_Str",TMPFILELOCATION);
  MqttDefaultFilePersistence persistence=new MqttDefaultFilePersistence(tempFile);
  try {
    topicClientSub=new MqttClient(broker,identifier,persistence);
    MqttConnectOptions connOpts=new MqttConnectOptions();
    connOpts.setCleanSession(true);
    topicClientSub.connect(connOpts);
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str");
    }
  }
 catch (  MqttException me) {
    log.error("String_Node_Str",me);
  }
  return topicClientSub;
}
Program: 116550
Project: 116550
Buggy source:
/** 
 * Publishes to a topic. If for some reason the connection to the topic got lost, this will perform re-subscription periodically, until a connection obtained.
 */
public void publish(Object messageObj,boolean retry){
synchronized (TopicPublisher.class) {
    Gson gson=new Gson();
    String message=gson.toJson(messageObj);
    boolean published=false;
    while (!published) {
      try {
        MqttClient mqttClient=MQTTConnector.getMQTTConClient();
        MqttMessage mqttMSG=new MqttMessage(message.getBytes());
        mqttMSG.setQos(QOS);
        mqttClient.connect();
        mqttClient.publish(topic,mqttMSG);
        mqttClient.disconnect();
        published=true;
      }
 catch (      Exception e) {
        initialized=false;
        if (log.isErrorEnabled()) {
          log.error("String_Node_Str" + topic,e);
        }
        if (!retry) {
          if (log.isDebugEnabled()) {
            log.debug("String_Node_Str" + topic);
          }
          throw new RuntimeException(e);
        }
        if (log.isInfoEnabled()) {
          log.info("String_Node_Str");
        }
        try {
          Thread.sleep(60000);
        }
 catch (        InterruptedException ignore) {
        }
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Publishes to a topic. If for some reason the connection to the topic got lost, this will perform re-subscription periodically, until a connection obtained.
 */
public void publish(Object messageObj,boolean retry){
synchronized (TopicPublisher.class) {
    Gson gson=new Gson();
    String message=gson.toJson(messageObj);
    boolean published=false;
    while (!published)     try {
      mqttClient=MQTTConnector.getMQTTConClient();
      MqttMessage mqttMSG=new MqttMessage(message.getBytes());
      mqttMSG.setQos(QOS);
      MqttConnectOptions connOpts=new MqttConnectOptions();
      connOpts.setCleanSession(true);
      mqttClient.connect(connOpts);
      mqttClient.publish(topic,mqttMSG);
      mqttClient.disconnect();
      published=true;
    }
 catch (    Exception e) {
      initialized=false;
      if (log.isErrorEnabled()) {
        log.error("String_Node_Str" + topic,e);
      }
      if (!retry) {
        if (log.isDebugEnabled()) {
          log.debug("String_Node_Str" + topic);
        }
        throw new RuntimeException(e);
      }
      if (log.isInfoEnabled()) {
        log.info("String_Node_Str");
      }
      try {
        Thread.sleep(60000);
      }
 catch (      InterruptedException ignore) {
      }
    }
 finally {
    }
  }
}
Program: 116551
Project: 116551
Buggy source:
private void doSubscribe() throws Exception, JMSException {
  MqttClient mqttClient=MQTTConnector.getMQTTSubClient(Util.getRandomString(5));
  try {
    mqttClient.connect();
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str" + topicName + "String_Node_Str"+ mqttClient.getServerURI());
    }
    mqttClient.subscribe(topicName);
    mqttClient.setCallback(messageListener);
    while (true) {
      try {
        Thread.sleep(1000);
      }
 catch (      InterruptedException e) {
      }
    }
  }
  finally {
    mqttClient.disconnect();
  }
}

Fixed version (ground truth):
private void doSubscribe() throws MqttException {
  MqttClient mqttClient=MQTTConnector.getMQTTSubClient(Util.getRandomString(5));
  if (log.isDebugEnabled()) {
    log.debug("String_Node_Str" + topicName + "String_Node_Str"+ mqttClient.getServerURI());
  }
  try {
    mqttClient.subscribe(topicName);
    mqttClient.setCallback(messageListener);
    subscribed=true;
  }
  finally {
    mqttClient.disconnect();
  }
}
Program: 116552
Project: 116552
Buggy source:
/** 
 * @param messageListener this MessageListener will get triggered each time this subscription receives a message.
 */
public void setMessageListener(MqttCallback messageListener){
  this.messageListener=messageListener;
}

Fixed version (ground truth):
/** 
 * @param messageListener this MessageListener will get triggered each time thissubscription receives a message.
 */
public void setMessageListener(MqttCallback messageListener){
  this.messageListener=messageListener;
}
Program: 116553
Project: 116553
Buggy source:
public void setPortMappings(PortMapping[] portMappings){
  this.portMappings=portMappings;
}

Fixed version (ground truth):
public void setPortMappings(PortMapping[] portMappings){
  this.portMappings=ArrayUtils.clone(portMappings);
}
Program: 116554
Project: 116554
Buggy source:
public void setDeploymentDirs(String[] deploymentDirs){
  this.deploymentDirs=deploymentDirs;
}

Fixed version (ground truth):
public void setDeploymentDirs(String[] deploymentDirs){
  this.deploymentDirs=ArrayUtils.clone(deploymentDirs);
}
Program: 116555
Project: 116555
Buggy source:
public void setIaasConfigs(IaasConfig[] iaasConfigs){
  this.iaasConfigs=iaasConfigs;
}

Fixed version (ground truth):
public void setIaasConfigs(IaasConfig[] iaasConfigs){
  this.iaasConfigs=ArrayUtils.clone(iaasConfigs);
}
Program: 116556
Project: 116556
Buggy source:
public void setProperties(Property[] properties){
  this.properties=properties;
}

Fixed version (ground truth):
public void setProperties(Property[] properties){
  this.properties=ArrayUtils.clone(properties);
}
Program: 116557
Project: 116557
Buggy source:
public void setPortMappings(PortMapping[] portMappings){
  this.portMappings=portMappings;
}

Fixed version (ground truth):
public void setPortMappings(PortMapping[] portMappings){
  this.portMappings=ArrayUtils.clone(portMappings);
}
Program: 116558
Project: 116558
Buggy source:
public void setAppTypes(AppType[] appTypes){
  this.appTypes=appTypes;
}

Fixed version (ground truth):
public void setAppTypes(AppType[] appTypes){
  this.appTypes=ArrayUtils.clone(appTypes);
}
Program: 116559
Project: 116559
Buggy source:
public void setVolumes(Volume[] volumes){
  this.volumes=volumes;
}

Fixed version (ground truth):
public void setVolumes(Volume[] volumes){
  this.volumes=ArrayUtils.clone(volumes);
}
Program: 116560
Project: 116560
Buggy source:
public void setPayload(byte[] payload){
  this.payload=payload;
}

Fixed version (ground truth):
public void setPayload(byte[] payload){
  this.payload=ArrayUtils.clone(payload);
}
Program: 116561
Project: 116561
Buggy source:
/** 
 * @param networkInterfaces the networkInterfaces to set
 */
public void setNetworkInterfaces(NetworkInterface[] networkInterfaces){
  this.networkInterfaces=networkInterfaces;
}

Fixed version (ground truth):
/** 
 * @param networkInterfaces the networkInterfaces to set
 */
public void setNetworkInterfaces(NetworkInterface[] networkInterfaces){
  this.networkInterfaces=ArrayUtils.clone(networkInterfaces);
}
Program: 116562
Project: 116562
Buggy source:
public void setPayload(byte[] payload){
  this.payload=payload;
}

Fixed version (ground truth):
public void setPayload(byte[] payload){
  this.payload=ArrayUtils.clone(payload);
}
Program: 116563
Project: 116563
Buggy source:
public void setProperties(Property[] properties){
  this.properties=properties;
}

Fixed version (ground truth):
public void setProperties(Property[] properties){
  this.properties=ArrayUtils.clone(properties);
}
Program: 116564
Project: 116564
Buggy source:
public static synchronized MqttClient getMQTTSubClient(String identifier) throws MqttException {
  String broker=mqttProp.getProperty("String_Node_Str",MQTTURL);
  String tempFile=mqttProp.getProperty("String_Node_Str",TMPFILELOCATION);
  MqttDefaultFilePersistence persistence=new MqttDefaultFilePersistence(tempFile);
  try {
    topicClientSub=new MqttClient(broker,identifier,persistence);
    MqttConnectOptions connOpts=new MqttConnectOptions();
    connOpts.setCleanSession(true);
    topicClientSub.connect(connOpts);
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str");
    }
  }
 catch (  MqttException me) {
    log.error("String_Node_Str",me);
  }
  return topicClientSub;
}

Fixed version (ground truth):
public static synchronized MqttClient getMQTTSubClient(String identifier) throws MqttException {
  String broker=mqttProp.getProperty("String_Node_Str",MQTTURL);
  String tempFile=mqttProp.getProperty("String_Node_Str",TMPFILELOCATION);
  MqttDefaultFilePersistence persistence=new MqttDefaultFilePersistence(tempFile);
  try {
    topicClientSub=new MqttClient(broker,identifier,persistence);
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str");
    }
  }
 catch (  MqttException me) {
    log.error("String_Node_Str",me);
  }
  return topicClientSub;
}
Program: 116565
Project: 116565
Buggy source:
private void doSubscribe() throws MqttException {
  MqttClient mqttClient=MQTTConnector.getMQTTSubClient(Util.getRandomString(5));
  if (log.isDebugEnabled()) {
    log.debug("String_Node_Str" + topicName + "String_Node_Str"+ mqttClient.getServerURI());
  }
  try {
    mqttClient.subscribe(topicName);
    mqttClient.setCallback(messageListener);
    subscribed=true;
  }
  finally {
    mqttClient.disconnect();
  }
}

Fixed version (ground truth):
private void doSubscribe() throws MqttException {
  MqttClient mqttClient=MQTTConnector.getMQTTSubClient(Util.getRandomString(5));
  if (log.isDebugEnabled()) {
    log.debug("String_Node_Str" + topicName + "String_Node_Str"+ mqttClient.getServerURI());
  }
  try {
    MqttConnectOptions connOpts=new MqttConnectOptions();
    connOpts.setCleanSession(true);
    mqttClient.connect(connOpts);
    mqttClient.subscribe(topicName);
    mqttClient.setCallback(messageListener);
    subscribed=true;
    while (true) {
      try {
        Thread.sleep(1000);
      }
 catch (      InterruptedException e) {
      }
    }
  }
  finally {
    mqttClient.disconnect();
  }
}
Program: 116566
Project: 116566
Buggy source:
@Override protected void startDependency(){
  if (!preOrderTraverse.isEmpty()) {
    String dependency=preOrderTraverse.poll();
    if (dependency.contains("String_Node_Str")) {
      startGroupMonitor(this,dependency.substring(6),component);
    }
 else     if (dependency.contains("String_Node_Str")) {
      ClusterDataHolder clusterDataHolder=component.getClusterData(dependency.substring(10));
      String clusterId=clusterDataHolder.getClusterId();
      String serviceName=clusterDataHolder.getServiceType();
      Cluster cluster=null;
      TopologyManager.acquireReadLock();
      cluster=TopologyManager.getTopology().getService(serviceName).getCluster(clusterId);
      TopologyManager.releaseReadLock();
      if (cluster != null) {
        startClusterMonitor(this,cluster);
      }
 else {
      }
    }
  }
 else {
    log.info("String_Node_Str" + this.id + "String_Node_Str");
  }
}

Fixed version (ground truth):
@Override protected void startDependency(){
  if (!preOrderTraverse.isEmpty()) {
    String dependency=preOrderTraverse.poll();
    if (dependency.contains("String_Node_Str")) {
      startGroupMonitor(this,dependency.substring(6),component);
    }
 else     if (dependency.contains("String_Node_Str")) {
      ClusterDataHolder clusterDataHolder=component.getClusterData(dependency.substring(10));
      String clusterId=clusterDataHolder.getClusterId();
      String serviceName=clusterDataHolder.getServiceType();
      Cluster cluster=null;
      cluster=TopologyManager.getTopology().getService(serviceName).getCluster(clusterId);
      if (cluster != null) {
        startClusterMonitor(this,cluster);
      }
 else {
      }
    }
  }
 else {
    log.info("String_Node_Str" + this.id + "String_Node_Str");
  }
}
Program: 116567
Project: 116567
Buggy source:
@Override public void startDependency(){
  preOrderTraverse=DependencyBuilder.getStartupOrder(component);
  if (!preOrderTraverse.isEmpty()) {
    String dependency=preOrderTraverse.poll();
    if (dependency.contains("String_Node_Str")) {
      for (      Group group : component.getAliasToGroupMap().values()) {
        if (group.getName().equals(dependency.substring(6))) {
          startGroupMonitor(this,group.getAlias(),component);
        }
      }
    }
 else     if (dependency.contains("String_Node_Str")) {
      for (      ClusterDataHolder dataHolder : component.getClusterDataMap().values()) {
        if (dataHolder.getServiceType().equals(dependency.substring(10))) {
          String clusterId=dataHolder.getClusterId();
          String serviceName=dataHolder.getServiceType();
          Cluster cluster=null;
          TopologyManager.acquireReadLock();
          cluster=TopologyManager.getTopology().getService(serviceName).getCluster(clusterId);
          TopologyManager.releaseReadLock();
          if (cluster != null) {
            startClusterMonitor(this,cluster);
          }
 else {
          }
        }
      }
    }
  }
 else {
    log.info("String_Node_Str" + this.id + "String_Node_Str");
  }
}

Fixed version (ground truth):
@Override public void startDependency(){
  preOrderTraverse=DependencyBuilder.getStartupOrder(component);
  if (!preOrderTraverse.isEmpty()) {
    String dependency=preOrderTraverse.poll();
    if (dependency.contains("String_Node_Str")) {
      for (      Group group : component.getAliasToGroupMap().values()) {
        if (group.getName().equals(dependency.substring(6))) {
          startGroupMonitor(this,group.getAlias(),component);
        }
      }
    }
 else     if (dependency.contains("String_Node_Str")) {
      for (      ClusterDataHolder dataHolder : component.getClusterDataMap().values()) {
        if (dataHolder.getServiceType().equals(dependency.substring(10))) {
          String clusterId=dataHolder.getClusterId();
          String serviceName=dataHolder.getServiceType();
          Cluster cluster=null;
          cluster=TopologyManager.getTopology().getService(serviceName).getCluster(clusterId);
          if (cluster != null) {
            startClusterMonitor(this,cluster);
          }
 else {
          }
        }
      }
    }
  }
 else {
    log.info("String_Node_Str" + this.id + "String_Node_Str");
  }
}
Program: 116568
Project: 116568
Buggy source:
public static StringBuilder getTextPayload(String appId,String groupName,String clusterId){
  StringBuilder payloadBuilder=new StringBuilder();
  payloadBuilder.append("String_Node_Str" + appId);
  if (groupName != null) {
    payloadBuilder.append("String_Node_Str");
    payloadBuilder.append("String_Node_Str" + groupName);
  }
  payloadBuilder.append("String_Node_Str");
  payloadBuilder.append("String_Node_Str" + clusterId);
  if (MetaDataClientConfig.getInstance().getMetaDataServiceBaseUrl() != null) {
  }
  payloadBuilder.append("String_Node_Str");
  return payloadBuilder;
}

Fixed version (ground truth):
public static StringBuilder getTextPayload(String appId,String groupName,String clusterId){
  StringBuilder payloadBuilder=new StringBuilder();
  payloadBuilder.append("String_Node_Str" + appId);
  if (groupName != null) {
    payloadBuilder.append("String_Node_Str");
    payloadBuilder.append("String_Node_Str" + groupName);
  }
  payloadBuilder.append("String_Node_Str");
  payloadBuilder.append("String_Node_Str" + clusterId);
  payloadBuilder.append("String_Node_Str");
  return payloadBuilder;
}
Program: 116569
Project: 116569
Buggy source:
public MetaDataServiceClientSample() throws RestClientException {
  initialize();
}

Fixed version (ground truth):
public MetaDataServiceClientSample() throws RestClientException {
}
Program: 116570
Project: 116570
Buggy source:
protected synchronized void startClusterMonitor(Cluster cluster){
  Thread th=null;
  if (cluster.isLbCluster() && !this.abstractClusterMonitors.containsKey(cluster.getClusterId())) {
    th=new Thread(new LBClusterMonitorAdder(cluster));
  }
 else   if (!cluster.isLbCluster() && !this.abstractClusterMonitors.containsKey(cluster.getClusterId())) {
    th=new Thread(new ClusterMonitorAdder(cluster));
  }
  if (th != null) {
    th.start();
    if (log.isDebugEnabled()) {
      log.debug(String.format("String_Node_Str",cluster.getClusterId()));
    }
  }
}

Fixed version (ground truth):
protected synchronized void startClusterMonitor(Monitor parent,Cluster cluster){
  Thread th=null;
  if (cluster.isLbCluster() && !this.abstractClusterMonitors.containsKey(cluster.getClusterId())) {
    th=new Thread(new LBClusterMonitorAdder(cluster));
  }
 else   if (!cluster.isLbCluster() && !this.abstractClusterMonitors.containsKey(cluster.getClusterId())) {
    th=new Thread(new ClusterMonitorAdder(parent,cluster));
  }
  if (th != null) {
    th.start();
    if (log.isDebugEnabled()) {
      log.debug(String.format("String_Node_Str",cluster.getClusterId()));
    }
  }
}
Program: 116571
Project: 116571
Buggy source:
public ClusterMonitorAdder(Cluster cluster){
  this.cluster=cluster;
}

Fixed version (ground truth):
public ClusterMonitorAdder(Monitor parent,Cluster cluster){
  this.parent=parent;
  this.cluster=cluster;
}
Program: 116572
Project: 116572
Buggy source:
@Override public void run(){
  this.status=Status.Running;
  while (!isDestroyed() && status.getCode() >= ClusterStatus.Running.getCode()) {
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str" + this.toString());
    }
    try {
      if (!ClusterStatus.In_Maintenance.equals(status)) {
        monitor();
      }
 else {
        if (log.isDebugEnabled()) {
          log.debug("String_Node_Str" + ClusterStatus.In_Maintenance + "String_Node_Str");
        }
      }
    }
 catch (    Exception e) {
      log.error("String_Node_Str" + this.toString(),e);
    }
    try {
      Thread.sleep(monitorInterval);
    }
 catch (    InterruptedException ignore) {
    }
  }
}

Fixed version (ground truth):
@Override public void run(){
  while (!isDestroyed() && status.getCode() >= Status.Running.getCode()) {
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str" + this.toString());
    }
    try {
      if (!ClusterStatus.In_Maintenance.equals(status)) {
        monitor();
      }
 else {
        if (log.isDebugEnabled()) {
          log.debug("String_Node_Str" + ClusterStatus.In_Maintenance + "String_Node_Str");
        }
      }
    }
 catch (    Exception e) {
      log.error("String_Node_Str" + this.toString(),e);
    }
    try {
      Thread.sleep(monitorInterval);
    }
 catch (    InterruptedException ignore) {
    }
  }
}
Program: 116574
Project: 116574
Buggy source:
@Override protected void startDependency(){
  preOrderTraverse=DependencyBuilder.getStartupOrder(component);
  if (!preOrderTraverse.isEmpty()) {
    String dependency=preOrderTraverse.poll();
    if (dependency.contains("String_Node_Str")) {
      startGroupMonitor(this,dependency.substring(6),component);
    }
 else     if (dependency.contains("String_Node_Str")) {
      ClusterDataHolder clusterDataHolder=component.getClusterData(dependency.substring(10));
      String clusterId=clusterDataHolder.getClusterId();
      String serviceName=clusterDataHolder.getServiceType();
      Cluster cluster=null;
      TopologyManager.acquireReadLock();
      cluster=TopologyManager.getTopology().getService(serviceName).getCluster(clusterId);
      TopologyManager.releaseReadLock();
      if (cluster != null) {
        startClusterMonitor(cluster);
      }
 else {
      }
    }
  }
 else {
    log.info("String_Node_Str" + this.id + "String_Node_Str");
  }
}

Fixed version (ground truth):
@Override protected void startDependency(){
  preOrderTraverse=DependencyBuilder.getStartupOrder(component);
  if (!preOrderTraverse.isEmpty()) {
    String dependency=preOrderTraverse.poll();
    if (dependency.contains("String_Node_Str")) {
      startGroupMonitor(this,dependency.substring(6),component);
    }
 else     if (dependency.contains("String_Node_Str")) {
      ClusterDataHolder clusterDataHolder=component.getClusterData(dependency.substring(10));
      String clusterId=clusterDataHolder.getClusterId();
      String serviceName=clusterDataHolder.getServiceType();
      Cluster cluster=null;
      TopologyManager.acquireReadLock();
      cluster=TopologyManager.getTopology().getService(serviceName).getCluster(clusterId);
      TopologyManager.releaseReadLock();
      if (cluster != null) {
        startClusterMonitor(this,cluster);
      }
 else {
      }
    }
  }
 else {
    log.info("String_Node_Str" + this.id + "String_Node_Str");
  }
}
Program: 116575
Project: 116575
Buggy source:
@Override public void run(){
  while (!isDestroyed() && status.getCode() >= Status.Running.getCode()) {
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str" + this.toString());
    }
    try {
      if (!ClusterStatus.In_Maintenance.equals(status)) {
        monitor();
      }
 else {
        if (log.isDebugEnabled()) {
          log.debug("String_Node_Str" + ClusterStatus.In_Maintenance + "String_Node_Str");
        }
      }
    }
 catch (    Exception e) {
      log.error("String_Node_Str" + this.toString(),e);
    }
    try {
      Thread.sleep(monitorInterval);
    }
 catch (    InterruptedException ignore) {
    }
  }
}

Fixed version (ground truth):
@Override public void run(){
  while (!isDestroyed()) {
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str" + this.toString());
    }
    try {
      if (!ClusterStatus.In_Maintenance.equals(status)) {
        monitor();
      }
 else {
        if (log.isDebugEnabled()) {
          log.debug("String_Node_Str" + ClusterStatus.In_Maintenance + "String_Node_Str");
        }
      }
    }
 catch (    Exception e) {
      log.error("String_Node_Str" + this.toString(),e);
    }
    try {
      Thread.sleep(monitorInterval);
    }
 catch (    InterruptedException ignore) {
    }
  }
}