Skip to content

Commit

Permalink
Fix build issue
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Nied <[email protected]>
  • Loading branch information
peternied committed Jan 17, 2024
1 parent c88febe commit 61e8c98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@

import org.opensearch.action.ActionRequestValidationException;
import org.opensearch.cluster.metadata.View;
import org.opensearch.common.at org.opensearch.core.common.io.stream.StreamInput;
import org.opensearch.common.annotation.ExperimentalApi;
import org.opensearch.core.common.io.stream.StreamInput;
import org.opensearch.core.common.io.stream.StreamOutput;
import org.opensearch.rest.action.admin.indicport java.util.Map;
import java.io.IOException;
import java.util.Map;
import java.util.Objects;
import java.util.function.Function;

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

@Override
public boolean equals(final Object o) {
// TODO: Maybe this isn't standard practice
return this.hashCode() == o.hashCode();
}

Expand All @@ -70,9 +71,4 @@ public int hashCode() {
public String toString() {
return super.toString().replace("SearchRequest{", "ViewSearchRequest{view=" + view + ",");
}

@Override
public Map<String, String> getResourceTypeAndIds() {
return Map.of(RestViewAction.VIEW_ID, view.name);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,6 @@

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

/**
* TODO: Tests with failures? `./gradlew :server:test`
- org.opensearch.index.store.RemoteSegmentStoreDirectoryTests.testDeleteStaleCommitsActualDeleteIOException
- org.opensearch.index.store.RemoteSegmentStoreDirectoryTests.testDeleteStaleCommitsDeleteDedup
- org.opensearch.index.store.RemoteSegmentStoreDirectoryTests.testDeleteStaleCommitsActualDeleteNoSuchFileException
- org.opensearch.index.store.RemoteSegmentStoreDirectoryTests.testDeleteStaleCommitsActualDelete
*
*/

public class ViewMetadata implements Metadata.Custom {

public static final String TYPE = "view";
Expand Down

0 comments on commit 61e8c98

Please sign in to comment.