Skip to content

Commit 96d5f0d

Browse files
committed
Add soft-deletes to UNMODIFIABLE_SETTINGS when restore snapshot
1 parent 1fd7d5a commit 96d5f0d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/src/main/java/org/elasticsearch/snapshots/RestoreService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
import org.elasticsearch.common.settings.Settings;
6565
import org.elasticsearch.common.unit.TimeValue;
6666
import org.elasticsearch.index.Index;
67+
import org.elasticsearch.index.IndexSettings;
6768
import org.elasticsearch.index.shard.IndexShard;
6869
import org.elasticsearch.index.shard.ShardId;
6970
import org.elasticsearch.repositories.IndexId;
@@ -120,7 +121,8 @@ public class RestoreService extends AbstractComponent implements ClusterStateApp
120121
SETTING_NUMBER_OF_SHARDS,
121122
SETTING_VERSION_CREATED,
122123
SETTING_INDEX_UUID,
123-
SETTING_CREATION_DATE));
124+
SETTING_CREATION_DATE,
125+
IndexSettings.INDEX_SOFT_DELETES_SETTING.getKey()));
124126

125127
// It's OK to change some settings, but we shouldn't allow simply removing them
126128
private static final Set<String> UNREMOVABLE_SETTINGS;

0 commit comments

Comments
 (0)