You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While using topo2topo to migrate topology data, we noticed that while the copying of all other topology data are idempotent, the copying of shard replication is not. Instead, it appends the tablets to the ShardReplication struct every time copy is run.
Overview of the Issue
While using topo2topo to migrate topology data, we noticed that while the copying of all other topology data are idempotent, the copying of shard replication is not. Instead, it appends the tablets to the ShardReplication struct every time copy is run.
The code is doing a protobuf merge, which is probably simply appending:
https://github.com/vitessio/vitess/blob/main/go/vt/topo/helpers/copy.go#L172
Reproduction Steps
topo2topo -do-shard-replications
twicetopo2topo -do-shard-replications -compare
and the validation will fail.Binary Version
Operating System and Environment details
Log Fragments
The text was updated successfully, but these errors were encountered: