Program: 48466
Project: 48466
Buggy source:
public boolean setPasswordForNodes(String clusterName,List<NodeEntity> nodes,String password){
  AuAssert.check(!nodes.isEmpty());
  logger.info("String_Node_Str" + clusterName);
  ArrayList<String> ipsOfNodes=VcVmUtil.getNodePrimaryMgtIPV4sFromEntitys(nodes);
  logger.info("String_Node_Str" + ipsOfNodes.toString());
  boolean succeed=true;
  List<Callable<Void>> storeProcedures=new ArrayList<Callable<Void>>();
  for (  NodeEntity node : nodes) {
    SetVMPasswordSP setVMPasswordSP=new SetVMPasswordSP(node,password);
    storeProcedures.add(setVMPasswordSP);
  }
  AuAssert.check(!storeProcedures.isEmpty());
  try {
    Callable<Void>[] storeProceduresArray=storeProcedures.toArray(new Callable[0]);
    NoProgressUpdateCallback callback=new NoProgressUpdateCallback();
    ExecutionResult[] result=Scheduler.executeStoredProcedures(com.vmware.aurora.composition.concurrent.Priority.BACKGROUND,storeProceduresArray,callback);
    for (int i=0; i < storeProceduresArray.length; i++) {
      SetVMPasswordSP sp=(SetVMPasswordSP)storeProceduresArray[i];
      NodeEntity node=sp.getNodeEntity();
      String vmNameWithIP=node.getVmNameWithIP();
      if (result[i].finished && result[i].throwable == null) {
        updateNodeData(node,true,null,null);
        logger.info("String_Node_Str" + vmNameWithIP);
      }
      if (!result[i].finished || result[i].throwable != null) {
        succeed=false;
        if (result[i].throwable != null) {
          String errMsg=result[i].throwable.getMessage();
          updateNodeData(node,false,errMsg,CommonUtil.getCurrentTimestamp());
          logger.error("String_Node_Str" + vmNameWithIP + "String_Node_Str"+ errMsg);
        }
      }
    }
  }
 catch (  Exception e) {
    String errMsg="String_Node_Str" + e.getMessage();
    logger.error("String_Node_Str" + clusterName,e);
    throw SetPasswordException.FAIL_TO_SET_PASSWORD("String_Node_Str" + clusterName,errMsg);
  }
  return succeed;
}

Fixed version (ground truth):
public boolean setPasswordForNodes(String clusterName,List<NodeEntity> nodes,String password){
  AuAssert.check(!nodes.isEmpty());
  logger.info("String_Node_Str" + clusterName);
  ArrayList<String> ipsOfNodes=VcVmUtil.getNodePrimaryMgtIPV4sFromEntitys(nodes);
  logger.info("String_Node_Str" + ipsOfNodes.toString());
  boolean succeed=true;
  List<Callable<Void>> storeProcedures=new ArrayList<Callable<Void>>();
  for (  NodeEntity node : nodes) {
    SetVMPasswordSP setVMPasswordSP=new SetVMPasswordSP(node,password);
    storeProcedures.add(setVMPasswordSP);
    clusterEntityMgr.updateNodeAction(node,Constants.NODE_ACTION_SETTING_PASSWORD);
  }
  AuAssert.check(!storeProcedures.isEmpty());
  try {
    Callable<Void>[] storeProceduresArray=storeProcedures.toArray(new Callable[0]);
    NoProgressUpdateCallback callback=new NoProgressUpdateCallback();
    ExecutionResult[] result=Scheduler.executeStoredProcedures(com.vmware.aurora.composition.concurrent.Priority.BACKGROUND,storeProceduresArray,callback);
    for (int i=0; i < storeProceduresArray.length; i++) {
      SetVMPasswordSP sp=(SetVMPasswordSP)storeProceduresArray[i];
      NodeEntity node=sp.getNodeEntity();
      String vmNameWithIP=node.getVmNameWithIP();
      if (result[i].finished && result[i].throwable == null) {
        updateNodeData(node,true,null,null);
        logger.info("String_Node_Str" + vmNameWithIP);
      }
      if (!result[i].finished || result[i].throwable != null) {
        succeed=false;
        if (result[i].throwable != null) {
          String errMsg=result[i].throwable.getMessage();
          updateNodeData(node,false,errMsg,CommonUtil.getCurrentTimestamp());
          logger.error("String_Node_Str" + vmNameWithIP + "String_Node_Str"+ errMsg);
        }
      }
    }
  }
 catch (  Exception e) {
    String errMsg="String_Node_Str" + e.getMessage();
    logger.error("String_Node_Str" + clusterName,e);
    throw SetPasswordException.FAIL_TO_SET_PASSWORD("String_Node_Str" + clusterName,errMsg);
  }
  return succeed;
}