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

Upgrade of event process instance index fails

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 3.1.0
    • None
    • backend
    • None
    • Not defined

      Given:
      I have event process instance indices in Optimize 3.0.0

      When:
      I upgrade to Optimize 3.1.0

      then:
      The upgrade fails with the following error

      rg.elasticsearch.ElasticsearchStatusException: Elasticsearch exception [type=invalid_alias_name_exception, reason=Invalid alias name [optimize-process-instance,optimize-event-process-instance-049cfe5d-bf56-45ec-8f71-fb7def2dace2]: must not contain the following characters [ , ", *, \, <, |, ,, >, /, ?]]
      	at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:177)
      	at org.elasticsearch.client.RestHighLevelClient.parseEntity(RestHighLevelClient.java:1706)
      	at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:1683)
      	at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1446)
      	at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1403)
      	at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1373)
      	at org.elasticsearch.client.IndicesClient.updateAliases(IndicesClient.java:418)
      	at org.camunda.optimize.upgrade.es.ESIndexAdjuster.setAllAliasesToReadOnly(ESIndexAdjuster.java:203)
      	at org.camunda.optimize.upgrade.steps.schema.UpdateIndexStep.execute(UpdateIndexStep.java:83)
      	at org.camunda.optimize.upgrade.plan.UpgradeExecutionPlan.execute(UpgradeExecutionPlan.java:77)
      	at org.camunda.optimize.upgrade.main.UpgradeProcedure.performUpgrade(UpgradeProcedure.java:43)
      	at org.camunda.optimize.upgrade.main.UpgradeMain.main(UpgradeMain.java:62)
      	Suppressed: org.elasticsearch.client.ResponseException: method [POST], host [http://localhost:9200], URI [/_aliases?master_timeout=30s&timeout=30s], status line [HTTP/1.1 400 Bad Request]
      

      Expected:
      It should succeed

      Hint:
      The cause is in `ESIndexAdjuster.setAllAliasesToReadOnly` this wasn't catched before as the data migration test didn't include event process instance data yet, it will however going forward as OPT-3892 got completed.

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              sebastian.bathke Sebastian Bathke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: