Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-31829

Make elasticsearch delete command more reliable using a retry policy

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2023.0, 2021.38
    • Component/s: Elasticsearch

      Description

      The same way bulk and index commands (NXP-30841) we want delete to be able to retry multiple times in case of timeout instead of giving up.

      Example of a failure:

      Exception during work: IndexingWorker(7ff5b678-9b1f-4823-aec7-e3563d0a28d1, , Progress(?%, ?/0), null)
      
      java.io.IOException: listener timeout after waiting for [60000] ms
      	at org.elasticsearch.client.RestClient$SyncResponseListener.get(RestClient.java:905) ~[elasticsearch-rest-client-6.5.3.jar:6.5.3]
      	at org.elasticsearch.client.RestClient.performRequest(RestClient.java:229) ~[elasticsearch-rest-client-6.5.3.jar:6.5.3]
      	at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1593) ~[elasticsearch-rest-high-level-client-6.5.3.jar:6.5.3]
      	at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1563) ~[elasticsearch-rest-high-level-client-6.5.3.jar:6.5.3]
      	at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1525) ~[elasticsearch-rest-high-level-client-6.5.3.jar:6.5.3]
      	at org.elasticsearch.client.RestHighLevelClient.delete(RestHighLevelClient.java:941) ~[elasticsearch-rest-high-level-client-6.5.3.jar:6.5.3]
      	at org.nuxeo.elasticsearch.client.ESRestClient.delete(ESRestClient.java:367) ~[nuxeo-elasticsearch-core-10.10-HF67.jar:?]
      
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: