use config version to trigger replication configuration instead of state Replicated
Summary
-
fix: master is now promoted when configuring the replication
-
chore: don't send lsn in response to proc_replication
Nobody cares about the lsn
-
fix: don't promote any replicas when configuring replication in the middle of master switchover
-
fix: Replicated is no longer a possible state
-
feat: use config version to trigger replication configuration
-
fix: used to computed parenthesis depth incorrectly in pico.raft_log
-
fix: used to panic in pico.raft_log sometimes
-
feat: also bump target vshard config version in update instance
-
refactor: allow multiple additional dmls when updating instance from governor
-
feat: bump replicaset target_config_version in update instance
-
refactor: add [current|target]_config_version columns to _pico_replicaset
Not used yet
- feat: proc_update_instance now uses Dml::Update instead of Dml::Replace
It's called proc_update_instance, not proc_replace_instance, duh!
-
refactor: don't use String as error type
-
chore: cleanup code formatting
- Close #864 (closed), a part of #856 (closed)
- Cherry-pick to: none
- Docs follow-up: docs#336
- updated _pico_replicaset schema
- removed instance state Replicated
- removed proc_replication_promote
- изменился алгоритм описанный тут https://docs.picodata.io/picodata/stable/architecture/topology_management/#replicaset_master_switchover
- Изменились аргументы https://docs.picodata.io/picodata/devel/architecture/rpc_api/#proc_replication