Facing Elastic Search Error in Project Analysis

Hi Team,

I am getting below error in project analysis: Could you help me?

org.sonar.server.es.ElasticsearchException: Fail to execute es requestES refresh request on indices 'components'
	at org.sonar.server.es.EsClient.execute(EsClient.java:313)
	at org.sonar.server.es.EsClient.refresh(EsClient.java:155)

Caused by: java.lang.RuntimeException: Request cannot be executed; I/O reactor status: STOPPED
	at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:904)
	at org.elasticsearch.client.RestClient.performRequest(RestClient.java:288)

Caused by: java.lang.IllegalStateException: Request cannot be executed; I/O reactor status: STOPPED
	at org.apache.http.util.Asserts.check(Asserts.java:46)
	at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase.ensureRunning(CloseableHttpAsyncClientBase.java:90)

Is it safe to delete the elastic search directory to resolve the issue?

Thanks,
Prasad.

Hi Prasad,

Stopping, deleting the ES directory and restarting is always a safe step. The only caveat is that you’ll end up waiting for your ES indices to rebuild and the time that takes varies by the size of your instance.

 
HTH,
Ann

Hi Ann,

That is ominous step that I need to execute. Would like to know what es directory contains? Do I lose any data which is important one?

Thanks,
Prasad.

Hi Prasad,

The ES directory contains Elasticsearch indices which are built / re-built from the database. They’re intermediate and if you drop them, they’ll simply be replaced.

 
HTH,
Ann