From 65e7d42bf01bafe663393dfdf4c6016f1a7e4fa4 Mon Sep 17 00:00:00 2001 From: Jing Zhang Date: Tue, 3 Jun 2025 19:22:05 -0700 Subject: [PATCH] bug fix 18417. Ensure feature flags from opensearch.yml are valid during plugin initialization. Signed-off-by: Jing Zhang --- server/src/main/java/org/opensearch/node/Node.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/src/main/java/org/opensearch/node/Node.java b/server/src/main/java/org/opensearch/node/Node.java index 25a43aa635127..6b1c419ddb211 100644 --- a/server/src/main/java/org/opensearch/node/Node.java +++ b/server/src/main/java/org/opensearch/node/Node.java @@ -525,6 +525,10 @@ protected Node(final Environment initialEnvironment, Collection clas ); } + // Ensure feature flags from opensearch.yml are valid during plugin initialization. + // Bug fix: https://github.com/opensearch-project/OpenSearch/issues/18417 + FeatureFlags.initializeFeatureFlags(tmpSettings); + this.pluginsService = new PluginsService( tmpSettings, initialEnvironment.configDir(),