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

Fix wrong pipeline name in debug log #58817

Merged
merged 3 commits into from
Aug 17, 2020

Conversation

gaobinlong
Copy link
Contributor

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 because pipeline in indexRequest is set to _none when executing the ingest pipeline:

indexRequest.setPipeline(NOOP_PIPELINE_NAME);
.

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.

@cbuescher cbuescher added the :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP label Jul 1, 2020
@elasticmachine
Copy link
Collaborator

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

@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Jul 1, 2020
@danhermann danhermann self-requested a review July 2, 2020 14:48
@danhermann
Copy link
Contributor

@elasticmachine update branch

Copy link
Contributor

@danhermann danhermann left a 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.

@gaobinlong
Copy link
Contributor Author

@danhermann, thanks for your review.

@danhermann
Copy link
Contributor

@elasticmachine ok to test

@danhermann
Copy link
Contributor

@elasticmachine update branch

@danhermann
Copy link
Contributor

@elasticmachine run elasticsearch-ci/packaging-sample-windows

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 v7.9.1 v7.10.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants