Indexes automatically re open after closed

I have a cluster with multiple indexes with the same format where the name changes month after month.

index_name_*

I am closing indexes 3 months after they are created to save resources since the data is no longer needed.

I have a Java application that reads and writes information on the cluster.

What I see is that after a while those indexes are being re opened again.

I've been searching for this solution but haven't found that the indexes are open automatically after they are closed.

What could be the reasons that after closing indexes they are opened again?

An index needs to be explicitly opened, it won't be opened due to a search or index request. It should log something though, so maybe check your Elasticsearch logs?

Thanks. I send the petition and I get this message:

It closes the index and opens it Immediately. There are no errors in the log.

Please don't post pictures of text, they are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them :slight_smile:

Which version of Elasticsearch are you using? How are the nodes configured? How many nodes do you have in the cluster?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.