Enum Class BulkErrorClassification
- All Implemented Interfaces:
Serializable,Comparable<BulkErrorClassification>,Constable
Permanently rejected errors indicate the document will never succeed as-is - typically mapping or schema violations such as the Lucene immense-term cap, exceeded nested-object limits, or strict-mapping rejections. The retry coordinator drops these after one attempt (the "poison-pill" short-circuit) so the retry queue cannot loop on them.
Transient errors cover cluster backpressure, temporary shard unavailability, timeouts, and the default "unknown" case. The retry coordinator re-queues these so they can succeed once the cluster recovers.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic BulkErrorClassificationClassifies a bulk item error based on its OpenSearch-suppliedtype.static BulkErrorClassificationReturns the enum constant of this class with the specified name.static BulkErrorClassification[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PERMANENT
-
TRANSIENT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
of
Classifies a bulk item error based on its OpenSearch-suppliedtype.Unknown or null types classify as
TRANSIENTdeliberately: retrying an unclassified failure is safer than dropping it. Add a type toPERMANENT_TYPESonly when it represents a true document-level reject.
-