milvus/pkg/util/replicateutil
yihao.dai cc792486a8
feat: Support force promote for primary-secondary failover (#47352)
Add force_promote flag to UpdateReplicateConfiguration API for disaster
recovery.

Changes:

- Add ForcePromote field to UpdateReplicateConfigurationRequest

- Refactor UpdateReplicateConfiguration to accept request object instead
of separate params

- Add WithForcePromote() method to ReplicateConfigurationBuilder

- Implement force promote validation and handling in assignment service

- Add integration tests for force promote scenarios

Force promote allows a secondary cluster to immediately become
standalone primary

when the original primary is unavailable, enabling active-passive
failover.

issue: https://github.com/milvus-io/milvus/issues/47351

design doc:
https://github.com/milvus-io/milvus-design-docs/blob/main/design_docs/20260202-force_promote_failover.md

---------

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
Signed-off-by: Yihao Dai <yihao.dai@zilliz.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-20 16:09:28 +08:00
..
config_helper.go enhance: refactor WithClusterLevelBroadcast to use external channel list and add FlushAll integration test (#47656) 2026-02-26 11:36:47 +08:00
config_helper_test.go enhance: refactor WithClusterLevelBroadcast to use external channel list and add FlushAll integration test (#47656) 2026-02-26 11:36:47 +08:00
config_validator.go enhance: allow pchannel count increase in ReplicateConfiguration (#47792) 2026-03-02 11:25:18 +08:00
config_validator_test.go enhance: allow pchannel count increase in ReplicateConfiguration (#47792) 2026-03-02 11:25:18 +08:00
sanitize.go
sanitize_test.go
util.go feat: Support force promote for primary-secondary failover (#47352) 2026-03-20 16:09:28 +08:00
util_test.go feat: Support force promote for primary-secondary failover (#47352) 2026-03-20 16:09:28 +08:00