-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Data Management/Ingest NodeExecution or management of Ingest Pipelines including GeoIPExecution or management of Ingest Pipelines including GeoIP
Description
Elasticsearch version: 5.5.1
Plugins installed: []
JVM version (java -version):
openjdk version "1.8.0_141"
OpenJDK Runtime Environment (build 1.8.0_141-b16)
OpenJDK 64-Bit Server VM (build 25.141-b16, mixed mode)
OS version (uname -a if on a Unix-like system):
Linux fce54823f0e7 4.4.0-83-generic #106-Ubuntu SMP Mon Jun 26 17:54:43 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Description of the problem including expected versus actual behavior:
Ingest node pipeline containing successive script processors with inline definition executes and compiles only the last processor. The expected behavior is to compile and execute all scripts.
Steps to reproduce:
TEST_DOC='
{
"pipeline": {
"description" : "Enhance doc",
"processors" : [
{
"script": {
"inline": "invalid command that does not compile"
},
"script": {
"inline": "ctx.field1 = '1'"
},
"script": {
"inline": "ctx.field2 = '2'"
}
}
]
},
"docs" : [
{
"_index": "i",
"_type": "line",
"_id": "GGFsUYR_dur3woEnKsSA",
"_score": 1,
"_source": {
"@timestamp": "2017-07-24T15:45:13.257Z"
}
}
]
}
'
curl -XPOST -f ${ES:need ES}/_ingest/pipeline/_simulate -d"$TEST_DOC" | python -m json.tool
What happens:
- The pipeline runs successfully
- The resulting doc contains only
_source.field2
Expectations:
- The first script should fail to compile.
- After removing the first script, the resulting doc should contain the
_source.field1and_source.field2keys.
Metadata
Metadata
Assignees
Labels
:Data Management/Ingest NodeExecution or management of Ingest Pipelines including GeoIPExecution or management of Ingest Pipelines including GeoIP