opensearch-project / opensearch-sdk-py

OpenSearch Extensions SDK for Python.
https://opensearch.org/blog/introducing-extensions-for-opensearch/
Apache License 2.0
10 stars 7 forks source link

[BUG] Integration tests require a restart of the test OpenSearch instance #43

Open dblock opened 1 year ago

dblock commented 1 year ago

What is the bug?

When running integration tests added in #42 OpenSearch needs to be restarted to (re)install the extension.

How can one reproduce the bug?

Run poetry exec integration twice. OpenSearch will fail with the following.

DEBUG    root:test_hello.py:44 Duplicate uniqueId [hello-world]. Did not load extension: Extension [name=hello-world, uniqueId=hello-world, hostAddress=127.0.0.1, port=1234, version=0.1.0, opensearchVersion=3.0.0, minimumCompatibleVersion=3.0.0]

What is the expected behavior?

Uninstall the extension at the end of the integration test.

Ideally without restarting, I opened https://github.com/opensearch-project/OpenSearch/issues/10088.

dbwiddis commented 1 year ago

Blocked by: https://github.com/opensearch-project/opensearch-sdk-java/issues/356 https://github.com/opensearch-project/OpenSearch/issues/6395