Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-5362

Optimize import gets stuck on nested document limit

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 3.6.0-alpha1, 3.6.0
    • 3.4.0
    • backend
    • import nested document limit
    • M

      Problem:
      Due to the nested document structure the Optimize import can get stuck on complex process instances that exceed the nested document limit of Elasticsearch in regards to the number of activity instances, variables instances or incidents.

      Steps to reproduce:
      1. Run a process instance with more than 10k activity instances associated with.
      2. Run the Optimize import

      Actual result :
      3. The activity instance import will get stuck trying to write the imported data to the instance document and logs the cause

      10:55:40.322 [ImportJobExecutor-pool-}}{{8}}{{] ERROR o.c.o.s.e.j.i.CompletedActivityInstanceElasticsearchImportJob - Error while executing import to elasticsearch
      org.camunda.optimize.service.exceptions.OptimizeRuntimeException: There were failures while performing bulk on Completed activity instances.
      If you are experiencing failures due to too many nested documents, try carefully increasing the configured nested object limit (es.settings.index.nested_documents_limit). See Optimize documentation for details. Message: failure in bulk execution:
      [}}{{821}}{{]: index [optimize-process-instance--processv6], type [_doc], id [dgffdg3453tdfgdgdf435], message [ElasticsearchException[Elasticsearch exception [type=mapper_parsing_exception, reason=The number of nested documents has exceeded the allowed limit of [}}{{10000}}{{]. This
       limit can be set by changing the [index.mapping.nested_objects.limit] index level setting.]]]
      

      Expected result:
      It would be preferable to not block the entire import in such cases. Rather the error should be detected logged and the instance skipped. It also may make sense to make this configurable to make it an actual decision of the user to ignore such cases.

      What is the context of your help request?
      SUPPORT-11126

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              scott.ghidiu Scott Ghidiu
              Joshua Windels Joshua Windels
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: