OpenSearch/modules
Jason Tedor 2bcdcb17cd
Introduce dedicated ingest processor exception (#48810)
Today we wrap exceptions that occur while executing an ingest processor
in an ElasticsearchException. Today, in ExceptionsHelper#unwrapCause we
only unwrap causes for exceptions that implement
ElasticsearchWrapperException, which the top-level
ElasticsearchException does not. Ultimately, this means that any
exception that occurs during processor execution does not have its cause
unwrapped, and so its status is blanket treated as a 500. This means
that while executing a bulk request with an ingest pipeline,
document-level failures that occur during a processor will cause the
status for that document to be treated as 500. Since that does not give
the client any indication that they made a mistake, it means some
clients will enter infinite retries, thinking that there is some
server-side problem that merely needs to clear. This commit addresses
this by introducing a dedicated ingest processor exception, so that its
causes can be unwrapped. While we could consider a broader change to
unwrap causes for more than just ElasticsearchWrapperExceptions, that is
a broad change with unclear implications. Since the problem of reporting
500s on client errors is a user-facing bug, we take the conservative
approach for now, and we can revisit the unwrapping in a future change.
2019-11-14 11:04:53 -05:00
..
aggs-matrix-stats Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
analysis-common Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
ingest-common Introduce dedicated ingest processor exception (#48810) 2019-11-14 11:04:53 -05:00
ingest-geoip Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
ingest-user-agent update ingest-user-agent regexes.yml (#47807) 2019-10-18 16:26:48 +02:00
lang-expression upgrade to Lucene-8.3.0-snapshot-25968e3b75e (#48227) 2019-10-21 08:21:09 +02:00
lang-mustache Update mustache dependency to 0.9.6 (#46243) 2019-09-09 13:42:03 +02:00
lang-painless Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
mapper-extras Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
parent-join Revert #46598 that breaks the cachability of the sub search contexts. 2019-10-15 09:40:59 +02:00
percolator Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
rank-eval Support `search_type` in Rank Evaluation API (#48542) (#48631) 2019-10-29 14:54:33 +01:00
reindex Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
repository-url Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
systemd Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
transport-netty4 Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
build.gradle Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00