What is the bug?
If you enable the exporter in Query insights, this will create a daily indices storing the top N queries. However, if you later disable the exporter, putting it to "None", this will delete all the historical indices previously created by the plugin.
How can one reproduce the bug?
Enable the exported in Query insights and then disable it.
What is the expected behavior?
Query insights exporter should not delete any historical indices created by the plugin before the end of retention period set by the customer. If needed, customers can manually delete the created indices.
What is your host/environment?
OpenSearch 3.1
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
The customer has already set the retention period for their indices, so the plugin should honour that period and not delete any indices before the end of that period.