Skip to content

[BUG] Latest ML Commons code fail with compilation error #4401

@akolarkunnu

Description

@akolarkunnu

What is the bug?
Latest ML Commons code fail with below compilation error:

Compilation failed; see the compiler output below.
opensearch/ml-commons/plugin/src/main/java/org/opensearch/ml/resources/MLResourceSharingExtension.java:22: error: ResourceProvider is abstract; cannot be instantiated
return Set.of(new ResourceProvider(ML_MODEL_GROUP_RESOURCE_TYPE, ML_MODEL_GROUP_INDEX));

ResourceProvider class is from Security plugin and I can see a recent refactoring task opensearch-project/security#5755 moved ResourceProvider as an interface. This caused the issue.

How can one reproduce the bug?
Take the latest code base and run the command "./gradlew run"

What is the expected behavior?
It should run successfully and launches a single node cluster with ml-commons plugin installed

What is your host/environment?
Any

Do you have any screenshots?
If applicable, add screenshots to help explain your problem.

Do you have any additional context?
Add any other context about the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions