Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ingest node pipelines] 502 Bad Gateway error when simulating a pipeline #63199

Closed
alisonelizabeth opened this issue Oct 2, 2020 · 1 comment · Fixed by #63327
Closed

[Ingest node pipelines] 502 Bad Gateway error when simulating a pipeline #63199

alisonelizabeth opened this issue Oct 2, 2020 · 1 comment · Fixed by #63327
Assignees
Labels
>bug :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP Team:Data Management Meta label for data/management team

Comments

@alisonelizabeth
Copy link
Contributor

alisonelizabeth commented Oct 2, 2020

Elasticsearch version: master

Description of the problem including expected versus actual behavior:
Running the simulate pipeline API with verbose enabled against a pipeline that has a pipeline processor, and the pipeline defined is expected to fail with the sample documents provided, results in: {"statusCode":502,"error":"Bad Gateway","message":"Client request timeout"}. I would expect the request to be successful and return the error. This works as expected without verbose enabled.

Steps to reproduce:

  1. Create a pipeline:
PUT _ingest/pipeline/pipeline_expected_to_fail
{
   "description": "_description",
    "processors": [
      {
        "rename": {
          "field": "dont_exist",
          "target_field": "field1"
        }
      }
    ]
}
  1. Create a second pipeline that defines a pipeline processor with the pipeline created in step 1. For example:
PUT _ingest/pipeline/my_pipeline
{
   "description": "_description",
    "processors": [
      {
        "set" : {
          "field" : "field2",
          "value" : "_value"
        }
      },
      {
        "pipeline" : {
          "name": "pipeline_expected_to_fail"
        }
      }
    ]
}
  1. Run the simulate API with verbose enabled against the pipeline created in step 2.
POST /_ingest/pipeline/my_pipeline/_simulate?verbose
{
  "docs": [
    {
      "_index": "index",
      "_id": "id",
      "_source": {
        "foo": "bar"
      }
    }
  ]
}
  1. Note the request results in: {"statusCode":502,"error":"Bad Gateway","message":"Client request timeout"}
@alisonelizabeth alisonelizabeth added >bug needs:triage Requires assignment of a team area label labels Oct 2, 2020
@danhermann danhermann added :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP and removed needs:triage Requires assignment of a team area label labels Oct 2, 2020
@elasticmachine
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP Team:Data Management Meta label for data/management team
Projects
None yet
3 participants