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

Elastic scroll context must be cleared proactivly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2021.20
    • Component/s: Elasticsearch

      Description

      In order to avoid too many scroll exception during document deletion because the number of scroll is limited in Elastic 7.x.

      org.elasticsearch.ElasticsearchException: Elasticsearch exception [type=es_rejected_execution_exception, reason=Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting.]
      	at ...
      org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:1869) ~[elasticsearch-rest-high-level-client-7.9.2.jar:7.9.2]
      	at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1626) ~[elasticsearch-rest-high-level-client-7.9.2.jar:7.9.2]
      	at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1583) ~[elasticsearch-rest-high-level-client-7.9.2.jar:7.9.2]
      	at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1553) ~[elasticsearch-rest-high-level-client-7.9.2.jar:7.9.2]
      	at org.elasticsearch.client.RestHighLevelClient.search(RestHighLevelClient.java:1069) ~[elasticsearch-rest-high-level-client-7.9.2.jar:7.9.2]
      	at org.nuxeo.elasticsearch.client.ESRestClient.search(ESRestClient.java:382) ~[nuxeo-elasticsearch-core-2021.16.7.jar:?]
      	at org.nuxeo.elasticsearch.core.ElasticSearchIndexingImpl.processDeleteCommandRecursive(ElasticSearchIndexingImpl.java:393) ~[nuxeo-elasticsearch-core-2021.16.7.jar:?]
      

      The org.nuxeo.elasticsearch.core.ElasticSearchIndexingImpl#processDeleteCommandRecursive

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: