From ce2efd6c80ab562c50138d80a4472cd4af3b2db6 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Thu, 7 Nov 2024 11:30:43 -0800 Subject: [PATCH] Update version to 2.18.0 for CatShards request and response (#16455) (#16591) * Update version to 2.18.0 for CatShards request and response * Retry Build * Fix CatShardsRequestTests * Retry Build --------- (cherry picked from commit 119abaff95a7f54affea6c844fad7ce3c8360155) Signed-off-by: Harsh Garg Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] Co-authored-by: Harsh Garg --- .../action/admin/cluster/shards/CatShardsRequestTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/test/java/org/opensearch/action/admin/cluster/shards/CatShardsRequestTests.java b/server/src/test/java/org/opensearch/action/admin/cluster/shards/CatShardsRequestTests.java index f4215f54c1e21..e161342c3c609 100644 --- a/server/src/test/java/org/opensearch/action/admin/cluster/shards/CatShardsRequestTests.java +++ b/server/src/test/java/org/opensearch/action/admin/cluster/shards/CatShardsRequestTests.java @@ -95,7 +95,7 @@ public void testSerializationWithOlderVersionsParametersNotSerialized() throws E catShardsRequest.setCancelAfterTimeInterval(TimeValue.timeValueMillis(randomIntBetween(1, 5))); catShardsRequest.setIndices(new String[2]); - Version version = VersionUtils.getPreviousVersion(Version.CURRENT); + Version version = VersionUtils.getPreviousVersion(Version.V_2_18_0); try (BytesStreamOutput out = new BytesStreamOutput()) { out.setVersion(version); catShardsRequest.writeTo(out);