Program: 49015
Project: 49015
Buggy source:
@SuppressWarnings("String_Node_Str") @Override public boolean createVcVms(NetworkAdd networkAdd,List<BaseNode> vNodes,StatusUpdater statusUpdator,Set<String> occupiedIps){
  if (vNodes.isEmpty()) {
    logger.info("String_Node_Str");
    return true;
  }
  Map<String,Folder> folders=createVcFolders(vNodes.get(0).getCluster());
  String clusterRpName=createVcResourcePools(vNodes);
  logger.info("String_Node_Str");
  allocateStaticIp(networkAdd,vNodes,occupiedIps);
  Pair<Callable<Void>,Callable<Void>>[] storeProcedures=new Pair[vNodes.size()];
  for (int i=0; i < vNodes.size(); i++) {
    BaseNode vNode=vNodes.get(i);
    VmSchema createSchema=getVmSchema(vNode);
    Map<String,String> guestVariable=getNetworkGuestVariable(networkAdd,vNode);
    QueryIpAddress query=new QueryIpAddress(Constants.VM_POWER_ON_WAITING_SEC);
    CreateVmPrePowerOn prePowerOn=getPrePowerOnFunc(vNode);
    CreateVmSP cloneVmSp=new CreateVmSP(vNode.getVmName(),createSchema,getVcResourcePool(vNode,clusterRpName),getVcDatastore(vNode),prePowerOn,query,guestVariable,false,folders.get(vNode.getGroupName()),VcResourceUtils.findHost(vNode.getTargetHost()));
    CompensateCreateVmSP deleteVmSp=new CompensateCreateVmSP(cloneVmSp);
    storeProcedures[i]=new Pair<Callable<Void>,Callable<Void>>(cloneVmSp,deleteVmSp);
  }
  try {
    UpdateVmProgressCallback callback=new UpdateVmProgressCallback(clusterEntityMgr,statusUpdator,vNodes.get(0).getClusterName());
    logger.info("String_Node_Str");
    Pair<ExecutionResult,ExecutionResult>[] result=Scheduler.executeStoredProcedures(com.vmware.aurora.composition.concurrent.Priority.BACKGROUND,storeProcedures,storeProcedures.length - 1,callback);
    if (result == null) {
      logger.error("String_Node_Str");
      return false;
    }
    int total=0;
    boolean success=true;
    List<BaseNode> failedNodes=new ArrayList<BaseNode>();
    for (int i=0; i < storeProcedures.length; i++) {
      Pair<ExecutionResult,ExecutionResult> pair=result[i];
      BaseNode vNode=vNodes.get(i);
      CreateVmSP sp=(CreateVmSP)storeProcedures[i].first;
      if (pair.first.finished && pair.first.throwable == null && pair.second.finished == false) {
        ++total;
        VcVirtualMachine vm=sp.getVM();
        AuAssert.check(vm != null);
        boolean vmSucc=VcVmUtil.setBaseNodeForVm(vNode,vm);
        if (!vmSucc) {
          success=vmSucc;
        }
      }
 else       if (pair.first.throwable != null) {
        processException(pair.first.throwable);
        logger.error("String_Node_Str" + vNode.getVmName(),pair.first.throwable);
        vNode.setSuccess(false);
        if (sp.getVM() != null) {
          vNode.setVmMobId(sp.getVM().getId());
        }
        failedNodes.add(vNode);
        success=false;
      }
      vNode.setFinished(true);
    }
    logger.info(total + "String_Node_Str");
    return success;
  }
 catch (  Exception e) {
    logger.error("String_Node_Str",e);
    throw BddException.INTERNAL(e,e.getMessage());
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override public boolean createVcVms(NetworkAdd networkAdd,List<BaseNode> vNodes,StatusUpdater statusUpdator,Set<String> occupiedIps){
  if (vNodes.isEmpty()) {
    logger.info("String_Node_Str");
    return true;
  }
  Map<String,Folder> folders=createVcFolders(vNodes.get(0).getCluster());
  String clusterRpName=createVcResourcePools(vNodes);
  logger.info("String_Node_Str");
  setNetworkSchema(vNodes);
  allocateStaticIp(networkAdd,vNodes,occupiedIps);
  Pair<Callable<Void>,Callable<Void>>[] storeProcedures=new Pair[vNodes.size()];
  for (int i=0; i < vNodes.size(); i++) {
    BaseNode vNode=vNodes.get(i);
    VmSchema createSchema=getVmSchema(vNode);
    Map<String,String> guestVariable=getNetworkGuestVariable(networkAdd,vNode);
    QueryIpAddress query=new QueryIpAddress(Constants.VM_POWER_ON_WAITING_SEC);
    CreateVmPrePowerOn prePowerOn=getPrePowerOnFunc(vNode);
    CreateVmSP cloneVmSp=new CreateVmSP(vNode.getVmName(),createSchema,getVcResourcePool(vNode,clusterRpName),getVcDatastore(vNode),prePowerOn,query,guestVariable,false,folders.get(vNode.getGroupName()),VcResourceUtils.findHost(vNode.getTargetHost()));
    CompensateCreateVmSP deleteVmSp=new CompensateCreateVmSP(cloneVmSp);
    storeProcedures[i]=new Pair<Callable<Void>,Callable<Void>>(cloneVmSp,deleteVmSp);
  }
  try {
    UpdateVmProgressCallback callback=new UpdateVmProgressCallback(clusterEntityMgr,statusUpdator,vNodes.get(0).getClusterName());
    logger.info("String_Node_Str");
    Pair<ExecutionResult,ExecutionResult>[] result=Scheduler.executeStoredProcedures(com.vmware.aurora.composition.concurrent.Priority.BACKGROUND,storeProcedures,storeProcedures.length - 1,callback);
    if (result == null) {
      logger.error("String_Node_Str");
      return false;
    }
    int total=0;
    boolean success=true;
    List<BaseNode> failedNodes=new ArrayList<BaseNode>();
    for (int i=0; i < storeProcedures.length; i++) {
      Pair<ExecutionResult,ExecutionResult> pair=result[i];
      BaseNode vNode=vNodes.get(i);
      CreateVmSP sp=(CreateVmSP)storeProcedures[i].first;
      if (pair.first.finished && pair.first.throwable == null && pair.second.finished == false) {
        ++total;
        VcVirtualMachine vm=sp.getVM();
        AuAssert.check(vm != null);
        boolean vmSucc=VcVmUtil.setBaseNodeForVm(vNode,vm);
        if (!vmSucc) {
          success=vmSucc;
        }
      }
 else       if (pair.first.throwable != null) {
        processException(pair.first.throwable);
        logger.error("String_Node_Str" + vNode.getVmName(),pair.first.throwable);
        vNode.setSuccess(false);
        if (sp.getVM() != null) {
          vNode.setVmMobId(sp.getVM().getId());
        }
        failedNodes.add(vNode);
        success=false;
      }
      vNode.setFinished(true);
    }
    logger.info(total + "String_Node_Str");
    return success;
  }
 catch (  Exception e) {
    logger.error("String_Node_Str",e);
    throw BddException.INTERNAL(e,e.getMessage());
  }
}