-
Notifications
You must be signed in to change notification settings - Fork 25.4k
Closed
Closed
Copy link
Labels
:Data Management/Ingest NodeExecution or management of Ingest Pipelines including GeoIPExecution or management of Ingest Pipelines including GeoIP>bug
Description
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"
}
}
]
}
Metadata
Metadata
Assignees
Labels
:Data Management/Ingest NodeExecution or management of Ingest Pipelines including GeoIPExecution or management of Ingest Pipelines including GeoIP>bug
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
elasticmachine commentedon Jun 18, 2021
Pinging @elastic/es-core-features (Team:Core/Features)
danhermann commentedon Jun 25, 2021
Fixed by #74248