opensearch-project / OpenSearch

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

Uninstall/uninitialized an extension #10088

Open dblock opened 1 year ago

dblock commented 1 year ago

Is your feature request related to a problem? Please describe.

The extensions feature lets me initialize an extension, but doesn't support removing it and currently requires a restart of OpenSearch.

Describe the solution you'd like

One of these:

curl -XPOST "localhost:9200/_extensions/uninitialize" -H "Content-Type:application/json" --data @samples/hello/hello.json
curl -DELETE "localhost:9200/_extensions/_hello-world"

Additional context

Coming from https://github.com/opensearch-project/opensearch-sdk-py/issues/43

dbwiddis commented 1 year ago

There is currently no way to uninstall an extension. The main blocker is https://github.com/opensearch-project/OpenSearch/issues/6395

See also https://github.com/opensearch-project/opensearch-sdk-java/issues/356

There may be a way to “reconnect” to a previously installed extension as a workaround.