Merge branch 'hotfix_gz_migration' into 'master'

hotfix: blobstorage migration gz fix

See merge request redactmanager/persistence-service!370
This commit is contained in:
Kilian Schüttler 2024-03-08 14:51:33 +01:00
commit baeadd145e

View File

@ -131,7 +131,7 @@ public class UncompressedFilesMigrationService {
} while (!keysToMigrate.isEmpty() && attempts <= 3);
if (!keysToMigrate.isEmpty()) {
throw new RuntimeException("Failed to migrate all azure blob keys. Remaining: " + keysToMigrate.size());
log.error("Failed to migrate {},", keysToMigrate.size());
}
}
@ -180,6 +180,7 @@ public class UncompressedFilesMigrationService {
log.info("Key: {} migrated successfully", key);
} catch (Exception e) {
log.error("Failed to migrate {}", key, e);
failedKeys.add(key);
}
}