Skip to content

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

@dolaru

Description

@dolaru
Member

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.

Activity

elasticmachine

elasticmachine commented on Feb 26, 2020

@elasticmachine
Collaborator

Pinging @elastic/es-core-features (:Core/Features/Ingest)

changed the title [-]Ingest pipeline _simulate with empty docs array times out and returns 500[/-] [+]Ingest pipeline _simulate request with empty docs array never returns a response[/+] on Feb 26, 2020
danhermann

danhermann commented on Mar 11, 2020

@danhermann
Contributor

Fixed by #52937

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @dolaru@elasticmachine@danhermann

        Issue actions

          Ingest pipeline _simulate request with empty docs array never returns a response · Issue #52833 · elastic/elasticsearch