Package org.apache.kafka.common
Enum Class MirrorTopicError
- All Implemented Interfaces:
Serializable
,Comparable<MirrorTopicError>
,Constable
Reason for persistent failure of a mirror topic.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIllegal state encountered while processing mirror topic.The mirror topic is not in a persistent failed state.Records received from source leader with epoch lower than previous epoch in the log.Source leader epoch went backwards, source topic may have been recreated.No reason was provided by the broker because the broker was running an older version.Records received from source leader that are larger than the maximum configured for the cluster link.Source partition count reduced, source topic may have been recreated.Source topic id is different from the persisted source topic id.Source topic was not in the metadata response or metadata response contained a partition epoch that is lower than last seen epoch.Truncation below high watermark.Truncation below high watermark with inconsistent epoch offsets.The error code couldn't be mapped because a new error code was set by a broker with a later version.Records with message format v0 or v1 cannot be replicated using cluster linking since we cannot reliably detect log divergence with these older message formats.Newer mirror topic state not supported by a broker still running on older version. -
Method Summary
Modifier and TypeMethodDescriptionshort
code()
static MirrorTopicError
errorOrDefault
(MirrorTopicError error, boolean failed) static MirrorTopicError
forCode
(short code, boolean failed) boolean
static MirrorTopicError
Returns the enum constant of this class with the specified name.static MirrorTopicError[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
UNKNOWN
The error code couldn't be mapped because a new error code was set by a broker with a later version. -
NOT_SET
No reason was provided by the broker because the broker was running an older version. Default reason will be used by the client. -
NO_ERROR
The mirror topic is not in a persistent failed state. -
SOURCE_TOPIC_MAY_BE_DELETED
Source topic was not in the metadata response or metadata response contained a partition epoch that is lower than last seen epoch. Topic may have been deleted or cluster link no longer has authorization to describe topic. This is used as the default reason when reason was not set by older brokers. -
SOURCE_TOPIC_ID_CHANGED
Source topic id is different from the persisted source topic id. Source topic was recreated. -
SOURCE_PARTITIONS_DECREASED
Source partition count reduced, source topic may have been recreated. -
NON_MONOTONIC_LOG_APPEND_EPOCH
Records received from source leader with epoch lower than previous epoch in the log. This indicates source topic recreation or corrupted source logs. -
UNEXPECTED_TRUNCATION
Truncation below high watermark with inconsistent epoch offsets. This indicates source topic recreation or corrupted source logs. -
UNSUPPORTED_MESSAGE_FORMAT
Records with message format v0 or v1 cannot be replicated using cluster linking since we cannot reliably detect log divergence with these older message formats. -
NON_MONOTONIC_SOURCE_EPOCH
Source leader epoch went backwards, source topic may have been recreated. -
ILLEGAL_STATE
Illegal state encountered while processing mirror topic. This is unexpected and indicates a bug in the implementation. -
UNSUPPORTED_MIRROR_STATE
Newer mirror topic state not supported by a broker still running on older version. This will resolve itself when brokers are upgraded to the newer version that supports the new state. -
RECORD_TOO_LARGE
Records received from source leader that are larger than the maximum configured for the cluster link. -
TRUNCATION_BELOW_HIGH_WATERMARK
Truncation below high watermark. This can be caused by unclean source leader election or other errors like couldn't detect source topic recreation.
-
-
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
-
code
public short code() -
repairable
public boolean repairable() -
forCode
-
errorOrDefault
-