From c6b2d363d498ccea6e40cae4829a0fcddf068a20 Mon Sep 17 00:00:00 2001 From: Joe Gallo Date: Fri, 22 Nov 2024 14:18:27 -0500 Subject: [PATCH] Drop this convenience constructor --- .../xpack/core/ilm/MountSnapshotStep.java | 10 ---------- .../xpack/core/ilm/MountSnapshotStepTests.java | 12 ++++++++---- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/MountSnapshotStep.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/MountSnapshotStep.java index 7d045f2950e1b..759a5d9c39432 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/MountSnapshotStep.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/MountSnapshotStep.java @@ -59,16 +59,6 @@ public MountSnapshotStep( this.totalShardsPerNode = totalShardsPerNode; } - public MountSnapshotStep( - StepKey key, - StepKey nextStepKey, - Client client, - String restoredIndexPrefix, - MountSearchableSnapshotRequest.Storage storageType - ) { - this(key, nextStepKey, client, restoredIndexPrefix, storageType, null); - } - @Override public boolean isRetryable() { return true; diff --git a/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/MountSnapshotStepTests.java b/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/MountSnapshotStepTests.java index 6cc45efb81027..580ab08f10de6 100644 --- a/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/MountSnapshotStepTests.java +++ b/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/MountSnapshotStepTests.java @@ -204,7 +204,8 @@ public void testPerformAction() throws Exception { randomStepKey(), client, RESTORED_INDEX_PREFIX, - randomStorageType() + randomStorageType(), + null ); performActionAndWait(step, indexMetadata, clusterState, null); } @@ -239,7 +240,8 @@ public void testResponseStatusHandling() throws Exception { randomStepKey(), clientPropagatingOKResponse, RESTORED_INDEX_PREFIX, - randomStorageType() + randomStorageType(), + null ); performActionAndWait(step, indexMetadata, clusterState, null); } @@ -254,7 +256,8 @@ public void testResponseStatusHandling() throws Exception { randomStepKey(), clientPropagatingACCEPTEDResponse, RESTORED_INDEX_PREFIX, - randomStorageType() + randomStorageType(), + null ); performActionAndWait(step, indexMetadata, clusterState, null); } @@ -328,7 +331,8 @@ private void doTestMountWithoutSnapshotIndexNameInState(String prefix) throws Ex randomStepKey(), client, RESTORED_INDEX_PREFIX, - randomStorageType() + randomStorageType(), + null ); performActionAndWait(step, indexMetadata, clusterState, null); }