Program: 49003
Project: 49003
Buggy source:
private void expandGroupStorage(NodeGroupEntity ngEntity,NodeGroupCreate group,EnumSet<HadoopRole> enumRoles){
  int storageSize=ngEntity.getStorageSize();
  DatastoreType storageType=ngEntity.getStorageType();
  boolean storageBisect=ngEntity.getDiskBisect();
  List<String> storeNames=ngEntity.getVcDatastoreNameList();
  if (storageSize <= 0 && storageType == null && (storeNames == null || storeNames.isEmpty())) {
    logger.debug("String_Node_Str" + ngEntity.getName());
  }
  logger.debug("String_Node_Str" + storageSize + "String_Node_Str"+ ngEntity.getName());
  logger.debug("String_Node_Str" + storageType + "String_Node_Str"+ ngEntity.getName());
  logger.debug("String_Node_Str" + storeNames + "String_Node_Str"+ ngEntity.getName());
  StorageRead storage=new StorageRead();
  group.setStorage(storage);
  storage.setSizeGB(storageSize);
  storage.setDiskBisect(storageBisect);
  if (storageType != null) {
    storage.setType(storageType.toString().toLowerCase());
  }
  storage.setNamePattern(getStoreNamePattern(storageType,storeNames));
  storage.setDsNames(storeNames);
  if (enumRoles.size() == 1 && (enumRoles.contains(HadoopRole.ZOOKEEPER_ROLE) || enumRoles.contains(HadoopRole.MAPR_ZOOKEEPER_ROLE))) {
    logger.debug("String_Node_Str");
    storage.setSplitPolicy(DiskSplitPolicy.BI_SECTOR);
  }
 else {
    if (storage.getType().equalsIgnoreCase(DatastoreType.LOCAL.toString())) {
      logger.debug("String_Node_Str");
      storage.setSplitPolicy(DiskSplitPolicy.EVEN_SPLIT);
    }
 else {
      logger.debug("String_Node_Str");
      storage.setSplitPolicy(DiskSplitPolicy.AGGREGATE);
    }
  }
  setDiskAttributes(storageType,storage,storeNames);
}

Fixed version (ground truth):
private void expandGroupStorage(NodeGroupEntity ngEntity,NodeGroupCreate group,EnumSet<HadoopRole> enumRoles){
  int storageSize=ngEntity.getStorageSize();
  DatastoreType storageType=ngEntity.getStorageType();
  List<String> storeNames=ngEntity.getVcDatastoreNameList();
  if (storageSize <= 0 && storageType == null && (storeNames == null || storeNames.isEmpty())) {
    logger.debug("String_Node_Str" + ngEntity.getName());
  }
  logger.debug("String_Node_Str" + storageSize + "String_Node_Str"+ ngEntity.getName());
  logger.debug("String_Node_Str" + storageType + "String_Node_Str"+ ngEntity.getName());
  logger.debug("String_Node_Str" + storeNames + "String_Node_Str"+ ngEntity.getName());
  StorageRead storage=new StorageRead();
  group.setStorage(storage);
  storage.setSizeGB(storageSize);
  if (storageType != null) {
    storage.setType(storageType.toString().toLowerCase());
  }
  storage.setNamePattern(getStoreNamePattern(storageType,storeNames));
  storage.setDsNames(storeNames);
  if (enumRoles.size() == 1 && (enumRoles.contains(HadoopRole.ZOOKEEPER_ROLE) || enumRoles.contains(HadoopRole.MAPR_ZOOKEEPER_ROLE))) {
    logger.debug("String_Node_Str");
    storage.setSplitPolicy(DiskSplitPolicy.BI_SECTOR);
  }
 else {
    if (storage.getType().equalsIgnoreCase(DatastoreType.LOCAL.toString())) {
      logger.debug("String_Node_Str");
      storage.setSplitPolicy(DiskSplitPolicy.EVEN_SPLIT);
    }
 else {
      logger.debug("String_Node_Str");
      storage.setSplitPolicy(DiskSplitPolicy.AGGREGATE);
    }
  }
  setDiskAttributes(storageType,storage,storeNames);
}