Skip to content

Wrong error message returned on delete trained model when model already deleted #105420

@maxhniebergall

Description

@maxhniebergall

Elasticsearch Version

8.13

Installed Plugins

No response

Java Version

bundled

OS Version

23.3.0 Darwin Kernel Version 23.3.0 arm64 (M1 mac)

Problem Description

Calling DELETE _ml/trained_models/ when that model ID is referenced by an ingest processor / pipeline returns the error

  "error" : {
    "root_cause" : [
      {
        "type" : "status_exception",
        "reason" : "Cannot delete model [.elser_model_2] as it is still referenced by ingest processors; use force to delete the model"
      }
    ],

even when the model has already been force deleted.

Steps to Reproduce

PUT ELSER
(there should be a builtin pipeline referencing ELSER)
DELETE ELSER
(you should receive the error message)

Logs (if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    :mlMachine learning>bugTeam:MLMeta label for the ML teamlow-riskAn open issue or test failure that is a low risk to future releases

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions