From 13f3e579affca459445129f4a6deff21d180042d Mon Sep 17 00:00:00 2001 From: Stanislav Maksimov Date: Mon, 1 Jul 2024 16:50:55 -0700 Subject: [PATCH] incident patch: disable the queryservice checks in rebuildkeyspacegraph call --- go/vt/topotools/rebuild_keyspace.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/go/vt/topotools/rebuild_keyspace.go b/go/vt/topotools/rebuild_keyspace.go index 4882799870d..1dfb6901991 100644 --- a/go/vt/topotools/rebuild_keyspace.go +++ b/go/vt/topotools/rebuild_keyspace.go @@ -78,9 +78,11 @@ 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 { @@ -88,6 +90,7 @@ func RebuildKeyspaceLocked(ctx context.Context, log logutil.Logger, ts *topo.Ser } } } + */ case topo.IsErrType(err, topo.NoNode): // NOOP default: