Merge branch 'RED-9658-BackupEntitlog' into 'release/2.465.x'
RED-9658: Do not delete entityLogs after mongo migration See merge request redactmanager/persistence-service!608
This commit is contained in:
commit
e404bd2d1b
@ -52,6 +52,7 @@ public class StorageToMongoCopyService {
|
|||||||
log.info("File found, now saving in mongodb");
|
log.info("File found, now saving in mongodb");
|
||||||
fileManagementStorageService.saveEntityLog(dossierFile.dossierId, dossierFile.fileId, entityLogFromStorage.get());
|
fileManagementStorageService.saveEntityLog(dossierFile.dossierId, dossierFile.fileId, entityLogFromStorage.get());
|
||||||
log.info("Deleting old file from storage");
|
log.info("Deleting old file from storage");
|
||||||
|
fileManagementStorageService.storeJSONObject(dossierFile.dossierId, dossierFile.fileId, FileType.ENTITY_LOG_BAK, entityLogFromStorage.get());
|
||||||
fileManagementStorageService.deleteObject(dossierFile.dossierId, dossierFile.fileId, FileType.ENTITY_LOG);
|
fileManagementStorageService.deleteObject(dossierFile.dossierId, dossierFile.fileId, FileType.ENTITY_LOG);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -25,6 +25,7 @@ public enum FileType {
|
|||||||
DOCUMENT_POSITION(".json"),
|
DOCUMENT_POSITION(".json"),
|
||||||
DOCUMENT_PAGES(".json"),
|
DOCUMENT_PAGES(".json"),
|
||||||
ENTITY_LOG(".json"),
|
ENTITY_LOG(".json"),
|
||||||
|
ENTITY_LOG_BAK(".json"),
|
||||||
COMPONENT_LOG(".json"),
|
COMPONENT_LOG(".json"),
|
||||||
MIGRATED_IDS(".json"),
|
MIGRATED_IDS(".json"),
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user