Package com.linkedin.venice.meta
Enum Class VersionStorageModeUpdateReason
java.lang.Object
java.lang.Enum<VersionStorageModeUpdateReason>
com.linkedin.venice.meta.VersionStorageModeUpdateReason
- All Implemented Interfaces:
Serializable,Comparable<VersionStorageModeUpdateReason>,Constable
Why a per-version
StorageMode update was requested. Carried as an optional parameter on the
update-version-storage-mode controller API so the controller that applies the update can tell an automated
fail-open apart from a manual or operational change, without callers having to encode intent in free-form
strings.
Requests that omit the reason are treated as UNSPECIFIED, which keeps older clients working.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe push job exhausted its external-storage write retries in the targeted region(s) and is failing open by downgrading those regions' version storage mode back toStorageMode.INTERNALbefore end of push.Default. -
Method Summary
Modifier and TypeMethodDescriptionparseOrDefault(String value) Parse a reason supplied over the controller API, toleratingnulland blank values so that a newer client talking to an older controller — or the reverse — never fails the request over telemetry intent.Returns the enum constant of this class with the specified name.static VersionStorageModeUpdateReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSPECIFIED
Default. A manual or otherwise unattributed storage-mode change. Not alertable. -
EXTERNAL_WRITE_FAILURE
The push job exhausted its external-storage write retries in the targeted region(s) and is failing open by downgrading those regions' version storage mode back toStorageMode.INTERNALbefore end of push. The push still succeeds, so this is the only signal that the region lost its external-storage copy, and the controller applying it emits an alertable metric.
-
-
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
-
parseOrDefault
Parse a reason supplied over the controller API, toleratingnulland blank values so that a newer client talking to an older controller — or the reverse — never fails the request over telemetry intent. An unrecognized non-blank value is logged, since it typically means a caller mis-typed the enum name and would otherwise silently lose the alertable signal this reason exists to carry.- Returns:
- the matching reason, or
UNSPECIFIEDwhen the value is absent or unrecognized
-