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

ignore_missing takes no effect when use template snippets in Rename Ingest Processor #74241

Closed
gaobinlong opened this issue Jun 17, 2021 · 2 comments
Labels
>bug :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP

Comments

@gaobinlong
Copy link
Contributor

Elasticsearch version: master

Plugins installed: []

JVM version (java -version): 14.0.1

OS version (uname -a if on a Unix-like system): Mac OS 10.13.6

Description of the problem including expected versus actual behavior:

When use template snippets in the field parameter of the rename ingest processor, and set ignore_missing to true, if the resolved field of the template snippets does not exist, the processor doesn't exit quietly but throw an exception.

Steps to reproduce:

POST _ingest/pipeline/_simulate

{
  "pipeline" :
  {
    "description": "_description",
    "processors": [
      {
        "rename" : {
          "field" : "{{foo}}",
          "target_field": "bar",
          "ignore_missing": true
        }
      }
    ]
  },
  "docs": [
    {
      "_index": "index",
      "_id": "id",
      "_source": {
        "message": "test"
      }
    }
  ]
}

The result is :

{
  "docs": [
    {
      "error": {
        "root_cause": [
          {
            "type": "illegal_argument_exception",
            "reason": "path cannot be null nor empty"
          }
        ],
        "type": "illegal_argument_exception",
        "reason": "path cannot be null nor empty"
      }
    }
  ]
}
@gaobinlong gaobinlong added >bug needs:triage Requires assignment of a team area label labels Jun 17, 2021
@matriv matriv added the :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP label Jun 18, 2021
@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Jun 18, 2021
@elasticmachine
Copy link
Collaborator

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

@matriv matriv removed Team:Data Management Meta label for data/management team needs:triage Requires assignment of a team area label labels Jun 18, 2021
@danhermann
Copy link
Contributor

Fixed by #74248

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
Projects
None yet
Development

No branches or pull requests

4 participants