opensearch-project / OpenSearch

🔎 Open source distributed and RESTful search engine.
https://opensearch.org/docs/latest/opensearch/index/
Apache License 2.0
8.89k stars 1.63k forks source link

[DRAFT] Introduce PluginMetadataClient #13712

Open fddattal opened 2 weeks ago

fddattal commented 2 weeks ago

Description

[Describe what this change achieves]

This PR introduces the PluginMetadataClient interface which abstractly exposes core metadata operations to plugins.

This pr is currently in draft. Tests are pending.

Related Issues

Resolves #[Issue number to be closed when this PR is merged]

Reference RFC: https://github.com/opensearch-project/OpenSearch/issues/13274

Check List

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.

github-actions[bot] commented 2 weeks ago

:x: Gradle check result for 9d9e2dd16a7c914c161f536ba1339405406c071f: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

dblock commented 2 weeks ago

Looking at this code, is the SdkAwarePlugin additional abstraction really necessary? What's the reason that it's not called MetadataPlugin instead?