From 01a6d4374fd30e096bc9d4fb7438fdd9c06bda66 Mon Sep 17 00:00:00 2001 From: Rishikesh1159 Date: Fri, 23 Jun 2023 20:23:16 +0000 Subject: [PATCH] Add warning log. Signed-off-by: Rishikesh1159 --- .../cluster/metadata/MetadataCreateIndexService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/src/main/java/org/opensearch/cluster/metadata/MetadataCreateIndexService.java b/server/src/main/java/org/opensearch/cluster/metadata/MetadataCreateIndexService.java index fae6f6c3cfba8..0a49feec61621 100644 --- a/server/src/main/java/org/opensearch/cluster/metadata/MetadataCreateIndexService.java +++ b/server/src/main/java/org/opensearch/cluster/metadata/MetadataCreateIndexService.java @@ -901,6 +901,9 @@ static Settings aggregateIndexSettings( indexSettingsBuilder.put(SETTING_INDEX_UUID, UUIDs.randomBase64UUID()); if (isSystemIndex || IndexMetadata.INDEX_HIDDEN_SETTING.get(request.settings())) { + logger.warn( + "Setting replication.type: DOCUMENT will be used for Index until Segment Replication supports System and Hidden indices" + ); indexSettingsBuilder.put(SETTING_REPLICATION_TYPE, ReplicationType.DOCUMENT); if (FeatureFlags.isEnabled(REMOTE_STORE)) { indexSettingsBuilder.put(SETTING_REMOTE_STORE_ENABLED, false);