Skip to content

Support new_primary in /primary/evict endpoint #11120

Description

@bufferflies

Enhancement Task

Currently the /primary/evict endpoint transfers keyspace group primaries to a
random other member of each group. This enhancement adds an optional
new_primary field in the request body, allowing the caller to specify a target
node for the evicted primaries, consistent with the existing /primary/transfer
endpoint.

  • Add new_primary (optional) body parameter to /primary/evict
  • Pass the specified target to TransferPrimary instead of empty string
  • Update Swagger annotation
  • Add test coverage in TestEvictPrimary

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementThe issue or PR belongs to an enhancement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions