Skip to content

Expose underlying processor to blame for thrown exception within CompoundProcessor#18342

Merged
talevy merged 1 commit intoelastic:masterfrom
talevy:fix-17823
May 24, 2016
Merged

Expose underlying processor to blame for thrown exception within CompoundProcessor#18342
talevy merged 1 commit intoelastic:masterfrom
talevy:fix-17823

Conversation

@talevy
Copy link
Copy Markdown
Contributor

@talevy talevy commented May 13, 2016

Fixes #17823

@talevy talevy added review :Distributed/Ingest Node Execution or management of Ingest Pipelines v5.0.0-alpha3 WIP and removed review labels May 13, 2016
@talevy talevy added review and removed WIP labels May 13, 2016
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test originally exposed the bug, and let it pass. no more!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually, this needs to handle CompoundProcessorException separately as well

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this method name is right. Maybe I just don't know this code that well though.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup. I just don't know it well enough. Disregard.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haha, I don't blame you. I had a really awkward time trying to name all of these subtly different scenarios

@nik9000
Copy link
Copy Markdown
Member

nik9000 commented May 16, 2016

LGTM though maybe @javanna should have a look?

@talevy
Copy link
Copy Markdown
Contributor Author

talevy commented May 16, 2016

thanks for the review @nik9000, I'll give @javanna or @martijnvg a little bit of time to check this out as well.

It was one of these problems that arose from refactoring, and this solution was kind of lost in the changes (seemed more difficult at the time).

@talevy talevy force-pushed the fix-17823 branch 2 times, most recently from 13aee39 to 6ad608b Compare May 16, 2016 18:40
@martijnvg
Copy link
Copy Markdown
Member

LGTM

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was updated so that we do not expose CompoundProcessorException outside of the Ingest Pipeline.

@talevy
Copy link
Copy Markdown
Contributor Author

talevy commented May 24, 2016

@nik9000 @martijnvg thank you for the reviews. Originally, I was missing an integration test that actually caught a big flaw in my original CompoundProcessorException design.

In the latest push, I wrap all CompoundProcessor related exceptions in an ElasticsearchException which relays the processor information in its headers.

let me know what you think!

@martijnvg
Copy link
Copy Markdown
Member

LGTM 👍

@talevy talevy merged commit 0fa67e1 into elastic:master May 24, 2016
@talevy talevy deleted the fix-17823 branch May 24, 2016 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Ingest Node Execution or management of Ingest Pipelines >enhancement v5.0.0-alpha3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants