Program: 80308
Project: 80308
Buggy source:
@Override public void doExecute() throws Exception, InterruptedException {
  try {
    String zkCleanUpEnabled=StringUtils.get(context.getProps().getProperty(GuaguaConstants.GUAGUA_ZK_CLEANUP_ENABLE),GuaguaConstants.GUAGUA_ZK_DEFAULT_CLEANUP_VALUE);
    final long start=System.nanoTime();
    if (Boolean.TRUE.toString().equalsIgnoreCase(zkCleanUpEnabled)) {
      new RetryCoordinatorCommand(isFixedTime(),getSleepTime()){
        @Override public boolean retryExecution() throws KeeperException, InterruptedException {
          int doneWorkers;
synchronized (LOCK) {
            doneWorkers=(int)NettyMasterCoordinator.this.iterResults.size();
          }
          if (TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - start) > 120 * 1000L) {
            LOG.info("String_Node_Str",doneWorkers,(context.getWorkers() - doneWorkers));
            return true;
          }
          if (System.nanoTime() % 30 == 0) {
            LOG.info("String_Node_Str",doneWorkers,(context.getWorkers() - doneWorkers));
          }
          return isTerminated(doneWorkers,context.getWorkers(),GuaguaConstants.GUAGUA_DEFAULT_MIN_WORKERS_RATIO,GuaguaConstants.GUAGUA_DEFAULT_MIN_WORKERS_TIMEOUT);
        }
      }
.execute();
      String appNode=getAppNode(context.getAppId()).toString();
      try {
        getZooKeeper().deleteExt(appNode,-1,true);
      }
 catch (      KeeperException.NoNodeException e) {
        if (System.nanoTime() % 20 == 0) {
          LOG.warn("String_Node_Str",appNode);
        }
      }
    }
  }
  finally {
    if (NettyMasterCoordinator.this.messageServer != null) {
      Method shutDownMethod=ReflectionUtils.getMethod(NettyMasterCoordinator.this.messageServer.getClass(),"String_Node_Str");
      if (shutDownMethod != null) {
        shutDownMethod.invoke(NettyMasterCoordinator.this.messageServer,(Object[])null);
      }
      NettyMasterCoordinator.this.messageServer.releaseExternalResources();
    }
    NettyMasterCoordinator.super.closeZooKeeper();
    NettyMasterCoordinator.this.closeIterResults();
    NettyMasterCoordinator.this.iterResults.clear();
  }
}

Fixed version (ground truth):
@Override public void doExecute() throws Exception, InterruptedException {
  try {
    String zkCleanUpEnabled=StringUtils.get(context.getProps().getProperty(GuaguaConstants.GUAGUA_ZK_CLEANUP_ENABLE),GuaguaConstants.GUAGUA_ZK_DEFAULT_CLEANUP_VALUE);
    final long start=System.nanoTime();
    if (Boolean.TRUE.toString().equalsIgnoreCase(zkCleanUpEnabled)) {
      new RetryCoordinatorCommand(isFixedTime(),getSleepTime()){
        @Override public boolean retryExecution() throws KeeperException, InterruptedException {
          int doneWorkers;
synchronized (LOCK) {
            doneWorkers=(int)NettyMasterCoordinator.this.iterResults.size();
          }
          if (TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - start) > 120 * 1000L) {
            LOG.info("String_Node_Str" + "String_Node_Str",doneWorkers,(context.getWorkers() - doneWorkers));
            return true;
          }
          if (System.nanoTime() % 30 == 0) {
            LOG.info("String_Node_Str" + "String_Node_Str",doneWorkers,(context.getWorkers() - doneWorkers));
          }
          return isTerminated(doneWorkers,context.getWorkers(),GuaguaConstants.GUAGUA_DEFAULT_MIN_WORKERS_RATIO,GuaguaConstants.GUAGUA_DEFAULT_MIN_WORKERS_TIMEOUT);
        }
      }
.execute();
      String appNode=getAppNode(context.getAppId()).toString();
      try {
        getZooKeeper().deleteExt(appNode,-1,true);
      }
 catch (      KeeperException.NoNodeException e) {
        if (System.nanoTime() % 20 == 0) {
          LOG.warn("String_Node_Str",appNode);
        }
      }
    }
  }
  finally {
    if (NettyMasterCoordinator.this.messageServer != null) {
      Method shutDownMethod=ReflectionUtils.getMethod(NettyMasterCoordinator.this.messageServer.getClass(),"String_Node_Str");
      if (shutDownMethod != null) {
        shutDownMethod.invoke(NettyMasterCoordinator.this.messageServer,(Object[])null);
      }
      NettyMasterCoordinator.this.messageServer.releaseExternalResources();
    }
    NettyMasterCoordinator.super.closeZooKeeper();
    NettyMasterCoordinator.this.closeIterResults();
    NettyMasterCoordinator.this.iterResults.clear();
  }
}