-
Type: Task
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: Elasticsearch
-
Tags:
-
Sprint:nxplatform #90
-
Story Points:3
When elastic is overloaded, a refresh timeout after 120s generates an error.
There is a retry policy in place for index, bulk index and delete but not for refresh.
If elastic cannot refresh it is busy with write operation and another refresh will happen no need to add more load by adding a retry policy.
We should log a warn and continue.
Exception during work: IndexingWorker(6ed76077-6718-41d1-b9fb-8d6b1a717edc, , Progress(?%, ?/0), null)
org.nuxeo.ecm.core.api.NuxeoException: java.net.SocketTimeoutException: 120,000 milliseconds timeout on connection http-outgoing-23 [ACTIVE]
at org.nuxeo.elasticsearch.client.ESRestClient.performRequest(ESRestClient.java:247) ~[nuxeo-elasticsearch-core-2021.36.9.jar:?]
at org.nuxeo.elasticsearch.client.ESRestClient.performRequestWithTracing(ESRestClient.java:256) ~[nuxeo-elasticsearch-core-2021.36.9.jar:?]
at org.nuxeo.elasticsearch.client.ESRestClient.refresh(ESRestClient.java:147) ~[nuxeo-elasticsearch-core-2021.36.9.jar:?]
at org.nuxeo.elasticsearch.core.ElasticSearchIndexingImpl.processDeleteCommandRecursive(ElasticSearchIndexingImpl.java:383) ~[nuxeo-elasticsearch-core-2021.36.9.jar:?]
at org.nuxeo.elasticsearch.core.ElasticSearchIndexingImpl.processDeleteCommandRecursive(ElasticSearchIndexingImpl.java:365) ~[nuxeo-elasticsearch-core-2021.36.9.jar:?]
at org.nuxeo.elasticsearch.core.ElasticSearchIndexingImpl.processDeleteCommand(ElasticSearchIndexingImpl.java:338) ~[nuxeo-elasticsearch-core-2021.36.9.jar:?]
at org.nuxeo.elasticsearch.core.ElasticSearchIndexingImpl.processBulkDeleteCommands(ElasticSearchIndexingImpl.java:160) ~[nuxeo-elasticsearch-core-2021.36.9.jar:?]
at org.nuxeo.elasticsearch.core.ElasticSearchIndexingImpl.indexNonRecursive(ElasticSearchIndexingImpl.java:147) ~[nuxeo-elasticsearch-core-2021.36.9.jar:?]
at org.nuxeo.elasticsearch.ElasticSearchComponent.indexNonRecursive(ElasticSearchComponent.java:431) ~[nuxeo-elasticsearch-core-2021.36.9.jar:?]
at org.nuxeo.elasticsearch.work.IndexingWorker.doIndexingWork(IndexingWorker.java:77) ~[nuxeo-elasticsearch-core-2021.36.9.jar:?]
at org.nuxeo.elasticsearch.work.AbstractIndexingWorker.doWork(AbstractIndexingWorker.java:61) ~[nuxeo-elasticsearch-core-2021.36.9.jar:?]
at