-
Notifications
You must be signed in to change notification settings - Fork 62
[BUG] Checks are failing since XContent base classes have been relocated from xcontent to core #481
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What is the bug?
Originating from this PR : opensearch-project/OpenSearch#5902
XContent base classes have been relocated from org.opensearch.common to org.opensearch.core for OpenSearch 3.x. This affects the following : Anomaly Detection [feature/extensions], opensearch-sdk-java [main], and Job Scheduler [main]
symbol: class ParseField
location: class PipelineAggregationSpec
/home/runner/work/anomaly-detection/anomaly-detection/sdk/src/main/java/org/opensearch/sdk/SearchExtension.java:426: error: cannot find symbol
ParseField name,
^
symbol: class ParseField
location: class AggregationSpec
/home/runner/work/anomaly-detection/anomaly-detection/sdk/src/main/java/org/opensearch/sdk/SearchExtension.java:428: error: cannot find symbol
ContextParser<String, T> parser
^
symbol: class ContextParser
location: class AggregationSpec
/home/runner/work/anomaly-detection/anomaly-detection/sdk/src/main/java/org/opensearch/sdk/SearchExtension.java:443: error: cannot find symbol
public <T extends AggregationBuilder> AggregationSpec(String name, Writeable.Reader<T> reader, ContextParser<String, T> parser) {
^
symbol: class ContextParser
location: class AggregationSpec
/home/runner/work/anomaly-detection/anomaly-detection/sdk/src/main/java/org/opensearch/sdk/SearchExtension.java:460: error: cannot find symbol
public AggregationSpec(ParseField name, Writeable.Reader<? extends AggregationBuilder> reader, Aggregator.Parser parser) {
^
symbol: class ParseField
location: class AggregationSpec
/home/runner/work/anomaly-detection/anomaly-detection/sdk/src/main/java/org/opensearch/sdk/SearchExtension.java:388: error: cannot find symbol
public SortSpec(ParseField name, Writeable.Reader<T> reader, SortParser<T> parser) {
How can one reproduce the bug?
- Clone and publish Opensearch main to maven local :
./gradlew publishToMavenLocal - Run
./gradlew check
Do you have any additional context?
We'll need to modify every xcontent import in each aforementioned repository and replace common with core
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working