Skip to content

Request with response 404 (document_missing_exception) creates an index #131021

Open
@xeraa

Description

@xeraa

Elasticsearch Version

9.0.0

Installed Plugins

No response

Java Version

bundled

OS Version

Elastic Cloud (Hosted)

Problem Description

A failing request — 404, document_missing_exception creates an index if doesn't yet exist

Steps to Reproduce

Console script to create the indexshouldnotbecreated index:

DELETE indexshouldnotbecreated

POST indexshouldnotbecreated/_update/1
{
  "script": {
    "source": "ctx._source.counter += params.count",
    "lang": "painless",
    "params": {
      "count": 4
    }
  }
}

GET _cat/indices/indexshouldnotbecreated

Logs (if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions