From 884adad2bfe4dae8a620814d0d13e01b3828ae65 Mon Sep 17 00:00:00 2001 From: Suraj Singh Date: Wed, 8 Feb 2023 17:18:45 -0800 Subject: [PATCH] [Segment Replication] Add changelog entry and fix allocation test Signed-off-by: Suraj Singh --- CHANGELOG.md | 1 + .../indices/replication/SegmentReplicationAllocationIT.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 112e76357c7db..2ba826d934eff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -89,6 +89,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Add a guardrail to limit maximum number of shard on the cluster ([#6143](https://github.com/opensearch-project/OpenSearch/pull/6143)) - Add cancellation of in-flight SearchTasks based on resource consumption ([#5606](https://github.com/opensearch-project/OpenSearch/pull/5605)) - Add support for ppc64le architecture ([#5459](https://github.com/opensearch-project/OpenSearch/pull/5459)) +- [Segment Replication] Add primary weight factor for balanced primary distribution([#6017](https://github.com/opensearch-project/OpenSearch/pull/6017)) ### Dependencies - Update nebula-publishing-plugin to 19.2.0 ([#5704](https://github.com/opensearch-project/OpenSearch/pull/5704)) diff --git a/server/src/internalClusterTest/java/org/opensearch/indices/replication/SegmentReplicationAllocationIT.java b/server/src/internalClusterTest/java/org/opensearch/indices/replication/SegmentReplicationAllocationIT.java index 7864bc4668cd5..fb72c4d578510 100644 --- a/server/src/internalClusterTest/java/org/opensearch/indices/replication/SegmentReplicationAllocationIT.java +++ b/server/src/internalClusterTest/java/org/opensearch/indices/replication/SegmentReplicationAllocationIT.java @@ -38,7 +38,7 @@ private void createIndex(String idxName, int shardCount, int replicaCount, boole Settings.Builder builder = Settings.builder() .put(IndexMetadata.SETTING_NUMBER_OF_SHARDS, shardCount) .put(IndexModule.INDEX_QUERY_CACHE_ENABLED_SETTING.getKey(), false) - .put(IndexMetadata.SETTING_NUMBER_OF_REPLICAS, REPLICA_COUNT); + .put(IndexMetadata.SETTING_NUMBER_OF_REPLICAS, replicaCount); if (isSegRep) { builder = builder.put(IndexMetadata.SETTING_REPLICATION_TYPE, ReplicationType.SEGMENT); } else {