From 36ca7b9030fa822a19252620e4c990d4351191b4 Mon Sep 17 00:00:00 2001 From: Matt Lehman Date: Thu, 26 Sep 2024 15:40:20 -0700 Subject: [PATCH] Change default compression transition time to be far in the future rather than the epoch. This implies that just changing the compression mode will not immediately lead to a dangerous situation in which recent backups could be deleted erroneously. --- .../src/main/java/com/netflix/priam/config/IConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/priam/src/main/java/com/netflix/priam/config/IConfiguration.java b/priam/src/main/java/com/netflix/priam/config/IConfiguration.java index a23e3f148..962865645 100644 --- a/priam/src/main/java/com/netflix/priam/config/IConfiguration.java +++ b/priam/src/main/java/com/netflix/priam/config/IConfiguration.java @@ -1104,7 +1104,7 @@ default boolean addMD5ToBackupUploads() { * @return the milliseconds since the epoch of the transition time. */ default long getCompressionTransitionEpochMillis() { - return 0L; + return Long.MAX_VALUE; } /** @return whether to enable auto_snapshot */