Denis Chudov created IGNITE-28419:
-------------------------------------
Summary: Leaseholder balancing: Ungraceful replica switch + manual
invocation
Key: IGNITE-28419
URL: https://issues.apache.org/jira/browse/IGNITE-28419
Project: Ignite
Issue Type: Bug
Components: placement driver ai3
Reporter: Denis Chudov
This is a crude first implementation to use in emergencies.
The algorithm is (all APIs are illustration-only):
# The user invokes `partitions rebalance-primaries --no-wait-lease`.
# The placement driver identifies all partitions `P` that need to be
rebalanced from their current replica leases `L`.
# The placement driver tells the node `L.leaseholderId` to give up the lease
at the end of the current term, and not to attempt to be elected in the next
term.
# In the next election, a new primary is elected.
The downsides:
- Many transactions will fail with "Primary replica has changed".
--
This message was sent by Atlassian Jira
(v8.20.10#820010)