Skip to content

Commit

Permalink
Remove unused compat shims from o.e.a.datastreams (#112697)
Browse files Browse the repository at this point in the history
Relates #111474 Relates #107984
  • Loading branch information
DaveCTurner authored Sep 10, 2024
1 parent dcb7ed2 commit ecd887d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public void testRerouteSuccessfulCorrectName() throws IOException {
createDataStream();

String destination = dataStream + "-destination";
final var createDataStreamRequest = new CreateDataStreamAction.Request(destination);
final var createDataStreamRequest = new CreateDataStreamAction.Request(TEST_REQUEST_TIMEOUT, TEST_REQUEST_TIMEOUT, destination);
assertAcked(client().execute(CreateDataStreamAction.INSTANCE, createDataStreamRequest).actionGet());
createReroutePipeline(destination);

Expand Down Expand Up @@ -306,7 +306,7 @@ private void putComposableIndexTemplate(boolean failureStore) throws IOException
}

private void createDataStream() {
final var createDataStreamRequest = new CreateDataStreamAction.Request(dataStream);
final var createDataStreamRequest = new CreateDataStreamAction.Request(TEST_REQUEST_TIMEOUT, TEST_REQUEST_TIMEOUT, dataStream);
assertAcked(client().execute(CreateDataStreamAction.INSTANCE, createDataStreamRequest).actionGet());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import org.elasticsearch.action.support.IndicesOptions;
import org.elasticsearch.action.support.master.AcknowledgedRequest;
import org.elasticsearch.action.support.master.AcknowledgedResponse;
import org.elasticsearch.action.support.master.MasterNodeRequest;
import org.elasticsearch.common.Strings;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
Expand Down Expand Up @@ -49,11 +48,6 @@ public Request(TimeValue masterNodeTimeout, TimeValue ackTimeout, String name, l
this.startTime = startTime;
}

@Deprecated(forRemoval = true) // temporary compatibility shim
public Request(String name) {
this(MasterNodeRequest.TRAPPY_IMPLICIT_DEFAULT_MASTER_NODE_TIMEOUT, AcknowledgedRequest.DEFAULT_ACK_TIMEOUT, name);
}

public String getName() {
return name;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ public Request(TimeValue masterNodeTimeout, String... names) {
this.wildcardExpressionsOriginallySpecified = Arrays.stream(names).anyMatch(Regex::isSimpleMatchPattern);
}

@Deprecated(forRemoval = true) // temporary compatibility shim
public Request(String... names) {
this(MasterNodeRequest.TRAPPY_IMPLICIT_DEFAULT_MASTER_NODE_TIMEOUT, names);
}

public String[] getNames() {
return names;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import org.elasticsearch.action.admin.indices.rollover.RolloverConfiguration;
import org.elasticsearch.action.support.IndicesOptions;
import org.elasticsearch.action.support.master.MasterNodeReadRequest;
import org.elasticsearch.action.support.master.MasterNodeRequest;
import org.elasticsearch.cluster.SimpleDiffable;
import org.elasticsearch.cluster.health.ClusterHealthStatus;
import org.elasticsearch.cluster.metadata.DataStream;
Expand Down Expand Up @@ -71,11 +70,6 @@ public Request(TimeValue masterNodeTimeout, String[] names, boolean includeDefau
this.includeDefaults = includeDefaults;
}

@Deprecated(forRemoval = true) // temporary compatibility shim
public Request(String[] names) {
this(MasterNodeRequest.TRAPPY_IMPLICIT_DEFAULT_MASTER_NODE_TIMEOUT, names);
}

public String[] getNames() {
return names;
}
Expand Down

0 comments on commit ecd887d

Please sign in to comment.