Enum Class ActiveKeyCountInvalidationReason
java.lang.Object
java.lang.Enum<ActiveKeyCountInvalidationReason>
com.linkedin.davinci.kafka.consumer.ActiveKeyCountInvalidationReason
- All Implemented Interfaces:
Serializable,Comparable<ActiveKeyCountInvalidationReason>,Constable
Reasons for invalidating a partition's active-key-count tracking. Each value carries a message
template (some with a
%d placeholder for runtime detail like the offending signal value
or header length) that becomes the prefix of the operator-visible ERROR log emitted by
StoreIngestionTask.invalidateActiveKeyCount(com.linkedin.davinci.kafka.consumer.PartitionConsumptionState, com.linkedin.davinci.kafka.consumer.ActiveKeyCountInvalidationReason).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFollower received a single-bytekcsvalue outside the {-1, 0, +1} contract.Follower received a multi-bytekcsheader (corrupt or future producer).Follower receivedkcs=-1but its count was already zero (count drifted).Leader'sStorageEngine.keyExists(int, byte[])call (a RocksDB value-column-family lookup used to determine whether a key currently has a live value) threw.Leader detected an underflow during DCR (count was zero but a delete was processed).Follower receivedkcs=0(leader-propagated invalidation signal). -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ActiveKeyCountInvalidationReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FOLLOWER_DECREMENT_UNDERFLOW
Follower receivedkcs=-1but its count was already zero (count drifted). -
LEADER_PROPAGATED_INVALIDATION
Follower receivedkcs=0(leader-propagated invalidation signal). -
CORRUPT_KCS_SIGNAL_VALUE
Follower received a single-bytekcsvalue outside the {-1, 0, +1} contract. -
CORRUPT_MULTI_BYTE_KCS_SIGNAL
Follower received a multi-bytekcsheader (corrupt or future producer). -
LEADER_DCR_UNDERFLOW
Leader detected an underflow during DCR (count was zero but a delete was processed). -
KEY_EXISTS_FAILURE
Leader'sStorageEngine.keyExists(int, byte[])call (a RocksDB value-column-family lookup used to determine whether a key currently has a live value) threw. The transient I/O failure must not stop ingestion or leave the active count in a wrong state — invalidate so we stop publishing a stale value.
-
-
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
-