Skip to content

Commit 489a396

Browse files
author
Sachin Kale
committed
Change base class of RestoreRemoteStoreRequest and TransportRestoreRemoteStoreAction
Signed-off-by: Sachin Kale <kalsac@amazon.com>
1 parent 15481c7 commit 489a396

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

server/src/main/java/org/opensearch/action/admin/cluster/remotestore/restore/RestoreRemoteStoreRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
import org.opensearch.action.ActionRequestValidationException;
1212
import org.opensearch.action.support.IndicesOptions;
13-
import org.opensearch.action.support.master.MasterNodeRequest;
13+
import org.opensearch.action.support.clustermanager.ClusterManagerNodeRequest;
1414
import org.opensearch.common.Strings;
1515
import org.opensearch.common.io.stream.StreamInput;
1616
import org.opensearch.common.io.stream.StreamOutput;
@@ -31,7 +31,7 @@
3131
*
3232
* @opensearch.internal
3333
*/
34-
public class RestoreRemoteStoreRequest extends MasterNodeRequest<RestoreRemoteStoreRequest> implements ToXContentObject {
34+
public class RestoreRemoteStoreRequest extends ClusterManagerNodeRequest<RestoreRemoteStoreRequest> implements ToXContentObject {
3535

3636
private String[] indices = Strings.EMPTY_ARRAY;
3737
private IndicesOptions indicesOptions = IndicesOptions.strictExpandOpen();

server/src/main/java/org/opensearch/action/admin/cluster/remotestore/restore/TransportRestoreRemoteStoreAction.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
import org.opensearch.action.ActionListener;
1212
import org.opensearch.action.support.ActionFilters;
13-
import org.opensearch.action.support.master.TransportMasterNodeAction;
13+
import org.opensearch.action.support.clustermanager.TransportClusterManagerNodeAction;
1414
import org.opensearch.cluster.ClusterState;
1515
import org.opensearch.cluster.block.ClusterBlockException;
1616
import org.opensearch.cluster.block.ClusterBlockLevel;
@@ -31,7 +31,9 @@
3131
*
3232
* @opensearch.internal
3333
*/
34-
public class TransportRestoreRemoteStoreAction extends TransportMasterNodeAction<RestoreRemoteStoreRequest, RestoreRemoteStoreResponse> {
34+
public class TransportRestoreRemoteStoreAction extends TransportClusterManagerNodeAction<
35+
RestoreRemoteStoreRequest,
36+
RestoreRemoteStoreResponse> {
3537
private final RestoreService restoreService;
3638

3739
@Inject

0 commit comments

Comments
 (0)