-
Notifications
You must be signed in to change notification settings - Fork 753
Open
Labels
type/enhancementThe issue or PR belongs to an enhancement.The issue or PR belongs to an enhancement.
Description
Enhancement Task
PD keyspace config is planned to be used by the TiKV encryption key rotation workflow to store the current and target encryption config version. While the workflow is intended to have a single active actor, unexpected concurrent executions can cause config updates to overwrite each other and break the intended state transition.
PD currently lacks support for conditional (CAS-style) updates, making it impossible to safely express transitions such as setting next_encryption_file_id only if it is absent or advancing current_* only if it matches an expected value.
This issue proposes adding simple preconditions (for example, equal / absent checks) to keyspace config updates so state transitions can be performed safely.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type/enhancementThe issue or PR belongs to an enhancement.The issue or PR belongs to an enhancement.