Skip to content

Commit

Permalink
incident patch: disable the queryservice checks in rebuildkeyspacegra…
Browse files Browse the repository at this point in the history
…ph call
  • Loading branch information
maksimov committed Jul 1, 2024
1 parent 404332b commit 13f3e57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion go/vt/topotools/rebuild_keyspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,19 @@ func RebuildKeyspaceLocked(ctx context.Context, log logutil.Logger, ts *topo.Ser
// value: topo.SrvKeyspace object being built
srvKeyspaceMap := make(map[string]*topodatapb.SrvKeyspace)
for _, cell := range cells {
srvKeyspace, err := ts.GetSrvKeyspace(ctx, cell, keyspace)
_ /*srvKeyspace*/, err := ts.GetSrvKeyspace(ctx, cell, keyspace)
switch {
case err == nil:
fmt.Println("Skipping");
/*
for _, partition := range srvKeyspace.GetPartitions() {
for _, shardTabletControl := range partition.GetShardTabletControls() {
if shardTabletControl.QueryServiceDisabled {
return fmt.Errorf("can't rebuild serving keyspace while a migration is on going. TabletControls is set for partition %v", partition)
}
}
}
*/
case topo.IsErrType(err, topo.NoNode):
// NOOP
default:
Expand Down

0 comments on commit 13f3e57

Please sign in to comment.