milvus/client/milvusclient
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
..
admin.go
admin_test.go
alias.go
alias_example_test.go
alias_options.go
alias_test.go
client.go enhance: add per-cluster TLS config for CDC outbound mTLS connections (#47968) 2026-03-06 11:27:20 +08:00
client_config.go enhance: add per-cluster TLS config for CDC outbound mTLS connections (#47968) 2026-03-06 11:27:20 +08:00
client_suite_test.go feat: Geospatial Data Type and GIS Function support for milvus (#44547) 2025-09-28 19:43:05 +08:00
client_test.go
collection.go feat: add TruncateCollection to Go SDK client (#48334) 2026-03-19 01:09:30 +08:00
collection_example_test.go enhance: [GoSDK]support run analyzer by collection field (#42642) 2025-06-17 11:16:38 +08:00
collection_options.go feat: add TruncateCollection to Go SDK client (#48334) 2026-03-19 01:09:30 +08:00
collection_test.go feat: add TruncateCollection to Go SDK client (#48334) 2026-03-19 01:09:30 +08:00
common.go
common_test.go
database.go
database_example_test.go
database_options.go
database_test.go
doc.go
external_table.go feat: [ExternalTable Part3] Support manual refresh for external collections (#47492) 2026-02-26 11:20:46 +08:00
external_table_options.go feat: [ExternalTable Part3] Support manual refresh for external collections (#47492) 2026-02-26 11:20:46 +08:00
external_table_test.go feat: [ExternalTable Part3] Support manual refresh for external collections (#47492) 2026-02-26 11:20:46 +08:00
index.go
index_example_test.go enhance: [GoSDK] Add more example for godoc (#41234) 2025-04-11 13:26:26 +08:00
index_options.go
index_test.go
interceptors.go enhance: Add grpc metadata header for client request time (#44059) 2025-08-27 14:27:49 +08:00
interceptors_test.go
iterator.go feat: [GoSDK] add QueryIterator support for Go client (#46633) 2025-12-27 01:43:20 +08:00
iterator_option.go feat: [GoSDK] add QueryIterator support for Go client (#46633) 2025-12-27 01:43:20 +08:00
iterator_test.go feat: [GoSDK] add QueryIterator support for Go client (#46633) 2025-12-27 01:43:20 +08:00
maintenance.go
maintenance_example_test.go enhance: [skip e2e][GoSDK] Add client example for common usage (#40643) 2025-03-17 14:16:10 +08:00
maintenance_options.go test: fix property case and remove load default replicaNum value (#41674) 2025-05-09 10:14:54 +08:00
maintenance_test.go
mock_milvus_server_test.go feat: [ExternalTable Part3] Support manual refresh for external collections (#47492) 2026-02-26 11:20:46 +08:00
partition.go
partition_example_test.go
partition_options.go
partition_test.go
rbac.go
rbac_example_test.go enhance: [GoSDK] Add more example for godoc (#41234) 2025-04-11 13:26:26 +08:00
rbac_options.go fix: Add forceDrop option to DropRole client API (#47071) 2026-01-19 21:45:30 +08:00
rbac_test.go
rbac_v2.go
read.go feat: Add client-side telemetry with heartbeat and server command support (#47523) 2026-02-04 00:03:50 +08:00
read_example_test.go enhance: Add support for minimum_should_match in text_match (parser, engine, client, and tests) (#44988) 2025-11-07 16:07:11 +08:00
read_option_test.go feat: [Go SDK] Support search by primary key IDs (#47633) 2026-02-10 10:52:54 +08:00
read_options.go feat: [Go SDK] Support search by primary key IDs (#47633) 2026-02-10 10:52:54 +08:00
read_test.go enhance: Add support for minimum_should_match in text_match (parser, engine, client, and tests) (#44988) 2025-11-07 16:07:11 +08:00
replicate.go feat: Support force promote for primary-secondary failover (#47352) 2026-03-20 16:09:28 +08:00
replicate_builder.go feat: Support force promote for primary-secondary failover (#47352) 2026-03-20 16:09:28 +08:00
replicate_builder_test.go feat: Support force promote for primary-secondary failover (#47352) 2026-03-20 16:09:28 +08:00
replicate_example_test.go feat: Support force promote for primary-secondary failover (#47352) 2026-03-20 16:09:28 +08:00
reranker.go
reranker_test.go
resource_group.go
resource_group_example_test.go enhance: [skip e2e][GoSDK] Add client example for common usage (#40643) 2025-03-17 14:16:10 +08:00
resource_group_option.go
resource_group_test.go
results.go enhance: [GoSDK] support pointer types for nullable columns in row-based API (#47712) 2026-02-10 18:48:42 +08:00
results_test.go enhance: [GoSDK] support pointer types for nullable columns in row-based API (#47712) 2026-02-10 18:48:42 +08:00
snapshot.go feat: Add comprehensive snapshot functionality for collections (#44361) 2026-01-06 10:15:24 +08:00
snapshot_options.go feat: Add comprehensive snapshot functionality for collections (#44361) 2026-01-06 10:15:24 +08:00
snapshot_test.go feat: Add comprehensive snapshot functionality for collections (#44361) 2026-01-06 10:15:24 +08:00
telemetry.go enhance: improve performance of telemetry (#47542) 2026-02-04 16:57:50 +08:00
telemetry_integration_test.go feat: Add client-side telemetry with heartbeat and server command support (#47523) 2026-02-04 00:03:50 +08:00
telemetry_test.go feat: Add client-side telemetry with heartbeat and server command support (#47523) 2026-02-04 00:03:50 +08:00
tls.go enhance: add per-cluster TLS config for CDC outbound mTLS connections (#47968) 2026-03-06 11:27:20 +08:00
tls_test.go enhance: add per-cluster TLS config for CDC outbound mTLS connections (#47968) 2026-03-06 11:27:20 +08:00
write.go feat: Add client-side telemetry with heartbeat and server command support (#47523) 2026-02-04 00:03:50 +08:00
write_example_test.go enhance: [GoSDK] Add more example for godoc (#41234) 2025-04-11 13:26:26 +08:00
write_option_test.go enhance: [GoSDK] Make all valid normal column compactible with nullable (#41606) 2025-04-29 19:50:53 +08:00
write_options.go fix: [GoSDK] Handle row->column input dynamic column (#44626) 2025-09-30 16:23:52 +08:00
write_test.go enhance: [GoSDK] Return SchemaMismatch error to retry (#42950) 2025-06-26 10:28:41 +08:00