From e52603d1dbd51610bd1b27ec7a578a6b489b55ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Fern=C3=A1ndez=20Casta=C3=B1o?= Date: Mon, 31 May 2021 12:47:31 +0200 Subject: [PATCH] Add deprecation flags to INDEX_TRANSLOG_RETENTION_SIZE_SETTING and INDEX_TRANSLOG_RETENTION_AGE_SETTING Relates #51697 --- .../src/main/java/org/elasticsearch/index/IndexSettings.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/org/elasticsearch/index/IndexSettings.java b/server/src/main/java/org/elasticsearch/index/IndexSettings.java index 319b0d443c9de..48029d957464c 100644 --- a/server/src/main/java/org/elasticsearch/index/IndexSettings.java +++ b/server/src/main/java/org/elasticsearch/index/IndexSettings.java @@ -252,7 +252,7 @@ public final class IndexSettings { public static final Setting INDEX_TRANSLOG_RETENTION_AGE_SETTING = Setting.timeSetting("index.translog.retention.age", settings -> shouldDisableTranslogRetention(settings) ? TimeValue.MINUS_ONE : TimeValue.timeValueHours(12), - TimeValue.MINUS_ONE, Property.Dynamic, Property.IndexScope); + TimeValue.MINUS_ONE, Property.Dynamic, Property.IndexScope, Property.Deprecated); /** * Controls how many translog files that are no longer needed for persistence reasons @@ -263,7 +263,7 @@ public final class IndexSettings { public static final Setting INDEX_TRANSLOG_RETENTION_SIZE_SETTING = Setting.byteSizeSetting("index.translog.retention.size", settings -> shouldDisableTranslogRetention(settings) ? "-1" : "512MB", - Property.Dynamic, Property.IndexScope); + Property.Dynamic, Property.IndexScope, Property.Deprecated); /** * Controls the number of translog files that are no longer needed for persistence reasons will be kept around before being deleted.