-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
Description
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_migrationtofalse. 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.