Open pav-kv opened 8 months ago
There are two config change protocols in raft: ConfChange and ConfChangeV2. The first is considered legacy, and exists only for backward compatibility. It can be removed.
raft
See https://github.com/cockroachdb/cockroach/blob/0b6de9c809f8a4df2ba943a8c9dd023adb03b01d/pkg/roachpb/data.go#L1534-L1539
A migration would need to have a few stages:
ConfChange
return true
ConfChangeV2
ConfigChange
Jira issue: CRDB-36778
cc @cockroachdb/replication
There are two config change protocols in
raft
: ConfChange and ConfChangeV2. The first is considered legacy, and exists only for backward compatibility. It can be removed.See https://github.com/cockroachdb/cockroach/blob/0b6de9c809f8a4df2ba943a8c9dd023adb03b01d/pkg/roachpb/data.go#L1534-L1539
A migration would need to have a few stages:
ConfChange
. Should be as easy asreturn true
in the code snippet above, behind a version gate.ConfChange
entries in logs are either processed and removed, or migrated toConfChangeV2
.ConfigChange
, after another version gate.Jira issue: CRDB-36778