From ff20d621742e36498ed094486fe2981beeddc4e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Vl=C4=8Dek?= Date: Thu, 1 May 2025 12:31:33 +0200 Subject: [PATCH] Lower down the log level to DEBUG MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This logging message is relevant to experimental feature that is not yet turned on by default. When this code runs in production then this logging message is confisung OPS because there is nothing they can do to address this WARN level message. Closes: #18137 Signed-off-by: Lukáš Vlček --- CHANGELOG.md | 2 ++ .../cluster/routing/allocation/AllocationService.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 08dae702cea70..089ba75abf28a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Changed +- Lower down the log level to DEBUG ([#18173](https://github.com/opensearch-project/OpenSearch/pull/18173)) + ### Dependencies - Bump `com.google.code.gson:gson` from 2.12.1 to 2.13.0 ([#17923](https://github.com/opensearch-project/OpenSearch/pull/17923)) - Bump `com.github.spotbugs:spotbugs-annotations` from 4.9.0 to 4.9.3 ([#17922](https://github.com/opensearch-project/OpenSearch/pull/17922)) diff --git a/server/src/main/java/org/opensearch/cluster/routing/allocation/AllocationService.java b/server/src/main/java/org/opensearch/cluster/routing/allocation/AllocationService.java index efe51e36ec748..a47f5ddac3f01 100644 --- a/server/src/main/java/org/opensearch/cluster/routing/allocation/AllocationService.java +++ b/server/src/main/java/org/opensearch/cluster/routing/allocation/AllocationService.java @@ -625,7 +625,7 @@ private void allocateExistingUnassignedShards(RoutingAllocation allocation) { allocateAllUnassignedShards(allocation); return; } - logger.warn("Falling back to single shard assignment since batch mode disable or multiple custom allocators set"); + logger.debug("Falling back to single shard assignment since batch mode disable or multiple custom allocators set"); final RoutingNodes.UnassignedShards.UnassignedIterator primaryIterator = allocation.routingNodes().unassigned().iterator(); while (primaryIterator.hasNext()) {