Skip to content

[ML] Hide empty config lists in MlMetadata post migration #36421

Closed
@davidkyle

Description

@davidkyle

Once all the job and datafeeds have been migrated don't write the empty lists in MlMetadata.toXContent otherwise you have this confusing and potentially alarming clusterstate where it looks like no jobs exist

GET /_cluster/state/metadata

ml : {
    jobs : [],
    datafeeds: []
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    :mlMachine learning

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions