Skip to content

Ingest pipeline _simulate request with empty docs array never returns a response #52833

@dolaru

Description

@dolaru

Elasticsearch version (bin/elasticsearch --version): 7.6.0

Description of the problem including expected versus actual behavior:
When sending an ingest pipeline _simulate request, If the value of docs is an empty array, a response is never returned.

I would've expected the request to either immediately fail and ask for the docs array to have at least 1 document, or have the request succeed and return:

{
  "docs" : []
}

Steps to reproduce:

  1. Send POST _ingest/pipeline/_simulate with the following payload:
{
  "pipeline": {
    "processors": []
  },
  "docs": []
}
  1. Notice that a response is never returned.

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