presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/storage/ShardRecoveryManager.java/ShardRecoveryManager/quarantineFile
class ShardRecoveryManager:    private void quarantineFile(UUID shardUuid, File file, String message)
    {
        File quarantine = new File(storageService.getQuarantineFile(shardUuid).getPath() + ".corrupt");
        if (quarantine.exists()) {
            log.warn("%s Quarantine already exists: %s", message, quarantine);
            return;
        }

        log.error("%s Quarantining corrupt file: %s", message, quarantine);
        try {
            Files.move(file.toPath(), quarantine.toPath(), ATOMIC_MOVE);
        }
        catch (IOException e) {
            log.warn(e, "Quarantine of corrupt file failed: " + quarantine);
            file.delete();
        }
    }