public enum ClientVersion extends Enum<ClientVersion>
| Enum Constant and Description |
|---|
CLIENT_VERSION_2X
This version is used during rollback from CLIENT_VERSION_UPGRADE_FROM_2X or CLIENT_VERSION_3X_WITH_ROLLBACK,
which can only be initiated using a KCL migration tool, when customer wants to revert to KCLv2.x functionality.
|
CLIENT_VERSION_3X
A new application starting KCLv3.x or an upgraded application from KCLv2.x after upgrade is successful
can use this version to default all KCLv3.x algorithms without any monitor to rollback.
|
CLIENT_VERSION_3X_WITH_ROLLBACK
When workers are operating in CLIENT_VERSION_UPGRADE_FROM_2X and when worker fleet is determined to be
KCLv3.x ready (when lease table GSI is active and worker-metrics are being emitted by all lease owners)
then the leader will initiate the switch to KCLv3.x algorithms for leader election and lease assignment,
by using this version and persisting it in the
MigrationState that allows all worker hosts
to also flip to KCLv3.x functionality. |
CLIENT_VERSION_INIT
This is a transient start state version used during initialization of the Migration State Machine.
|
CLIENT_VERSION_UPGRADE_FROM_2X
This version is used during the upgrade of an application from KCLv2.x to KCLv3.x, in this version
KCL workers will emit WorkerMetricStats and run KCLv2.x algorithms for leader election and lease
assignment.
|
| Modifier and Type | Method and Description |
|---|---|
static ClientVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClientVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientVersion CLIENT_VERSION_INIT
public static final ClientVersion CLIENT_VERSION_UPGRADE_FROM_2X
public static final ClientVersion CLIENT_VERSION_2X
public static final ClientVersion CLIENT_VERSION_3X_WITH_ROLLBACK
MigrationState that allows all worker hosts
to also flip to KCLv3.x functionality. In this KCL will also monitor for rollback to detect when the
customer updates version to CLIENT_VERSION_2X using migration tool, so that it instantly flips back
to CLIENT_VERSION_2X.public static final ClientVersion CLIENT_VERSION_3X
public static ClientVersion[] values()
for (ClientVersion c : ClientVersion.values()) System.out.println(c);
public static ClientVersion valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2024. All rights reserved.