Skip to content

Error upgrading from (<= 6.5) to 6.7.x #41090

@benwtrent

Description

@benwtrent

While upgrading from version 6.5.x (or a previous version) to 6.7.x, there is a bug that puts a null value into the cluster metadata state in certain situations.

If there exists any ML Anomaly jobs or Datafeeds and there are NO persistent tasks in the cluster state, then the ml config migration process puts a null value into the the new cluster state and attempts to update the state. This, of course, fails as the Diff check sees the null value and throws an NPE.

This issue can be worked around in any of the following ways:

  • Delete Jobs and datafeeds
  • Set the cluster setting xpack.ml.enable_config_migration to false. It is a dynamic setting.
  • Open any ML job so that a persistent task gets created.

before setting xpack.ml.enable_config_migration: true again, the jobs either need to be deleted, or open one of the jobs. That will then allow the migration to take place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions