Skip to content

Do not wrap ingest processor exception with IAE#48816

Merged
jasontedor merged 4 commits intoelastic:masterfrom
jasontedor:ingest-processor-iae-wrap
Nov 1, 2019
Merged

Do not wrap ingest processor exception with IAE#48816
jasontedor merged 4 commits intoelastic:masterfrom
jasontedor:ingest-processor-iae-wrap

Conversation

@jasontedor
Copy link
Copy Markdown
Member

@jasontedor jasontedor commented Nov 1, 2019

The problem with wrapping here is that it converts any exception into an IAE, which we treat as a client error (400 status) whereas the exception being wrapped here could be a server error (e.g., NPE). This commit stops wrapping all ingest processor exceptions as IAEs.

Relates #48810

The problem with wrapping here is that it converts any exception into an
IAE, which we treat as a client error (400 status) whereas the exception
being wrapped here could be a server error (e.g., NPE). This commit
stops wrapping all ingest processor exceptions as IAEs.
@jasontedor jasontedor added >bug :Distributed/Ingest Node Execution or management of Ingest Pipelines v8.0.0 v7.5.0 v7.6.0 labels Nov 1, 2019
@jasontedor jasontedor requested a review from talevy November 1, 2019 16:33
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

@talevy talevy self-requested a review November 1, 2019 17:20
@jasontedor
Copy link
Copy Markdown
Member Author

@elasticmachine run elasticsearch-ci/1

@jasontedor jasontedor merged commit a565b2d into elastic:master Nov 1, 2019
jasontedor added a commit that referenced this pull request Nov 1, 2019
The problem with wrapping here is that it converts any exception into an
IAE, which we treat as a client error (400 status) whereas the exception
being wrapped here could be a server error (e.g., NPE). This commit
stops wrapping all ingest processor exceptions as IAEs.
jasontedor added a commit that referenced this pull request Nov 1, 2019
The problem with wrapping here is that it converts any exception into an
IAE, which we treat as a client error (400 status) whereas the exception
being wrapped here could be a server error (e.g., NPE). This commit
stops wrapping all ingest processor exceptions as IAEs.
@jasontedor jasontedor deleted the ingest-processor-iae-wrap branch November 1, 2019 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants