Skip to content

Commit 61e8c98

Browse files
committed
Fix build issue
Signed-off-by: Peter Nied <[email protected]>
1 parent c88febe commit 61e8c98

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

server/src/main/java/org/opensearch/action/search/ViewSearchRequest.java

+4-8
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@
1010

1111
import org.opensearch.action.ActionRequestValidationException;
1212
import org.opensearch.cluster.metadata.View;
13-
import org.opensearch.common.at org.opensearch.core.common.io.stream.StreamInput;
13+
import org.opensearch.common.annotation.ExperimentalApi;
14+
import org.opensearch.core.common.io.stream.StreamInput;
1415
import org.opensearch.core.common.io.stream.StreamOutput;
15-
import org.opensearch.rest.action.admin.indicport java.util.Map;
16+
import java.io.IOException;
17+
import java.util.Map;
1618
import java.util.Objects;
1719
import java.util.function.Function;
1820

@@ -57,7 +59,6 @@ public void writeTo(final StreamOutput out) throws IOException {
5759

5860
@Override
5961
public boolean equals(final Object o) {
60-
// TODO: Maybe this isn't standard practice
6162
return this.hashCode() == o.hashCode();
6263
}
6364

@@ -70,9 +71,4 @@ public int hashCode() {
7071
public String toString() {
7172
return super.toString().replace("SearchRequest{", "ViewSearchRequest{view=" + view + ",");
7273
}
73-
74-
@Override
75-
public Map<String, String> getResourceTypeAndIds() {
76-
return Map.of(RestViewAction.VIEW_ID, view.name);
77-
}
7874
}

server/src/main/java/org/opensearch/cluster/metadata/ViewMetadata.java

-10
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,6 @@
2929

3030
import static org.opensearch.cluster.metadata.ComposableIndexTemplateMetadata.MINIMMAL_SUPPORTED_VERSION;
3131

32-
/**
33-
* TODO: Tests with failures? `./gradlew :server:test`
34-
35-
- org.opensearch.index.store.RemoteSegmentStoreDirectoryTests.testDeleteStaleCommitsActualDeleteIOException
36-
- org.opensearch.index.store.RemoteSegmentStoreDirectoryTests.testDeleteStaleCommitsDeleteDedup
37-
- org.opensearch.index.store.RemoteSegmentStoreDirectoryTests.testDeleteStaleCommitsActualDeleteNoSuchFileException
38-
- org.opensearch.index.store.RemoteSegmentStoreDirectoryTests.testDeleteStaleCommitsActualDelete
39-
*
40-
*/
41-
4232
public class ViewMetadata implements Metadata.Custom {
4333

4434
public static final String TYPE = "view";

0 commit comments

Comments
 (0)