Closed aggarwalShivani closed 5 months ago
Hi The expectation is consistent behaviour between ism and sm policies. Either both APIs must throw similar exception when the index does not exist, or both should return an empty list. Request feedback from repo maitainers to decide next steps for this issue,
Hi, Request feedback from maintainers on whether the requested change is valid/desirable from the plugin's design, and if yes, I would be interested to pick this item to contribute.
Hi, Gentle reminder: Request feedback from maintainers on this issue. If this change is desirable, I would be interested to start working on the PR. I have already identified a potential fix.
Hi, I have raised a PR for this change. Request maintainers for review and feedback.
Issue fixed with https://github.com/opensearch-project/index-management/pull/1072
What is the bug? Index-management plugin is installed in Opensearch. No policies are created yet, so the index .opendistro-ism-config does not exist yet.
Listing ism policies does not fail, and prints an empty list.
However, listing snapshot-management policies throws an exception due to absence of the index.
How can one reproduce the bug? Steps to reproduce the behavior:
What is the expected behavior? Like ism policies, even the sm api could respond with an empty list, instead of an exception.
What is your host/environment?