etreschenkov 2025-08-08 11:57:05 +03:00
parent 0edeb16e22
commit 001c5e431b

View file

@ -131,9 +131,15 @@ public class ExportFromHazelcast {
((ArrayList<SDf02>) tableRows).sort(Comparator.comparing(SDf02::getInSDfId));
}
if (tableRows.isEmpty()) {
log.info("uuid {}. Map {} is empty, generationId {}, skip file creation", resultContainer.getUuid(), resultContainer.getTableForExport().getHazelcastMapName(), resultContainer.getGroupId());
boolean isDelOk = xmlFile.delete();
log.info("uuid {}. Map {} is empty, generationId {}, deleting empty xml file: {}",
resultContainer.getUuid(),
resultContainer.getTableForExport().getHazelcastMapName(),
resultContainer.getGroupId(),
isDelOk);
//временное решение по таску http://jira.mfd.msk:8088/browse/CLS-897
//в dev версии изменена логика на стороне clearing-service и такой проблемы быть не должно
return StageResult.ERROR;
// log.debug("uuid {}, send to SFTP path \"{}\"", resultContainer.getUuid(), path);
//