From a5aad7d497848f5663c47ccdf9b8c5f053da800e Mon Sep 17 00:00:00 2001 From: Shailendra Singh Date: Tue, 3 Sep 2024 11:04:24 +0530 Subject: [PATCH] Fix transient failure in UT testIndicesRoutingDiffWhenIndexDeletedAndAdded. Signed-off-by: Shailendra Singh --- .../cluster/routing/remote/RemoteRoutingTableServiceTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/test/java/org/opensearch/cluster/routing/remote/RemoteRoutingTableServiceTests.java b/server/src/test/java/org/opensearch/cluster/routing/remote/RemoteRoutingTableServiceTests.java index 5061de9161ab4..9ef8813346c06 100644 --- a/server/src/test/java/org/opensearch/cluster/routing/remote/RemoteRoutingTableServiceTests.java +++ b/server/src/test/java/org/opensearch/cluster/routing/remote/RemoteRoutingTableServiceTests.java @@ -526,7 +526,7 @@ public void testIndicesRoutingDiffWhenIndexDeletedAndAdded() { String indexNameToDelete = allIndices.get(randomIntBetween(0, allIndices.size() - 1)); RoutingTable.Builder updatedRoutingTableBuilder = RoutingTable.builder(routingTable).remove(indexNameToDelete); - String indexName = randomAlphaOfLength(randomIntBetween(1, 50)); + String indexName = randomAlphaOfLength(randomIntBetween(51, 100)); final IndexMetadata indexMetadata = new IndexMetadata.Builder(indexName).settings( Settings.builder() .put(IndexMetadata.SETTING_VERSION_CREATED, Version.CURRENT)