-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Fix wrong pipeline name in debug log #58817
Fix wrong pipeline name in debug log #58817
Conversation
Pinging @elastic/es-core-features (:Core/Features/Ingest) |
@elasticmachine update branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @gaobinlong. This looks good and I'll get it merged in.
@danhermann, thanks for your review. |
@elasticmachine ok to test |
@elasticmachine update branch |
@elasticmachine run elasticsearch-ci/packaging-sample-windows |
Relates to #58478.
When the ingest pipeline processes failed in bulk API, we can find a debug log which prints
failed to execute pipeline [_none] for document...
, the pipeline name is always_none
. That's becausepipeline
inindexRequest
is set to_none
when executing the ingest pipeline:elasticsearch/server/src/main/java/org/elasticsearch/ingest/IngestService.java
Line 366 in cc3bd39
The main point of this PR is moving the logging to IngestService#executePipelines(), so we can get the real pipeline name when printing the debug log.