From 73162a9d99c7a8d7238974ba118b9a73790dcefc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Vl=C4=8Dek?= Date: Fri, 2 May 2025 16:12:34 +0200 Subject: [PATCH 1/2] Change single shard assignment log message from warn 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 | 4 ++++ .../cluster/routing/allocation/AllocationService.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f75078251670a..5fb14151a7ca4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,4 +16,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Security +### Changed + +- Lower down the log level to DEBUG ([#18186](https://github.com/opensearch-project/OpenSearch/pull/18186)) + [Unreleased 2.19.x]: https://github.com/opensearch-project/OpenSearch/compare/fd9a9d90df25bea1af2c6a85039692e815b894f5...2.19 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 78f17c9ff212b..6487f5fd70aea 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 @@ -598,7 +598,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()) { From d3b78b8ccc3268b78432291c1c748e784779e0cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Vl=C4=8Dek?= Date: Sun, 4 May 2025 20:38:38 +0200 Subject: [PATCH 2/2] Update CHANGELOG.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Andrew Ross Signed-off-by: Lukáš Vlček --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5fb14151a7ca4..dccee7b6c6402 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Changed -- Lower down the log level to DEBUG ([#18186](https://github.com/opensearch-project/OpenSearch/pull/18186)) +- Change single shard assignment log message from warn to debug ([#18186](https://github.com/opensearch-project/OpenSearch/pull/18186)) [Unreleased 2.19.x]: https://github.com/opensearch-project/OpenSearch/compare/fd9a9d90df25bea1af2c6a85039692e815b894f5...2.19