[vtadmin] Rename reparent-related RPCs, endpoints, methods, RBAC actions#10404
Conversation
- `EmergencyReparentShard` => `EmergencyFailoverShard` - `PlannedReparentShard` => `PlannedFailoverShard` - `ReparentTablet` => `RefreshTabletReplicationSource` - `TabletExternallyReparented` => `TabletExternallyPromoted` Signed-off-by: Andrew Mason <andrew@planetscale.com>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
|
Should we be doing this for vtctld commands too? |
that's much more involved, and requires deprecation cycles, so i don't particularly want to spend time on that (vs letting vtadmin be the frontend that people actually use) |
Signed-off-by: Andrew Mason <andrew@planetscale.com>
Agreed. It's not worth the effort of changing vtctl commands. |
deepthi
left a comment
There was a problem hiding this comment.
Looks fine to me, except for one small comment.
go/vt/vtadmin/cluster/cluster.go
Outdated
|
|
||
| // RefreshTabletReplicationSource performs a `CHANGE REPLICATION SOURCE TO` on | ||
| // a tablet to replicate from the current primary in the shard. This only works | ||
| // if the current replica position matches the last known |
There was a problem hiding this comment.
How about we delete the sentence we don't understand? I mean this part.
This only works
// if the current replica position matches the last known
// `CHANGE REPLICATION SOURCE TO` or failover action.
There was a problem hiding this comment.
The real deal is that this function will fail if the replica you are trying to change the source on has transactions that the new "source" does not have. I don't think it is necessary to get into that detail here at all.
Signed-off-by: Andrew Mason <andrew@planetscale.com>
Signed-off-by: Andrew Mason <andrew@planetscale.com>
Signed-off-by: Andrew Mason <andrew@planetscale.com>
Description
Rename reparent-related RPCs, endpoints, methods, RBAC actions
EmergencyReparentShard=>EmergencyFailoverShardPlannedReparentShard=>PlannedFailoverShardReparentTablet=>RefreshTabletReplicationSourceTabletExternallyReparented=>TabletExternallyPromotedRelated Issue(s)
Checklist
Deployment Notes