Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
  • Loading branch information
rohit-nayak-ps committed Jun 30, 2023
1 parent 255b32a commit 2cc6d8d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go/vt/vttablet/tabletserver/schema/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ func (se *Engine) ResetSequences(tables []string) error {
table.SequenceInfo.Reset()
}
} else {
return vterrors.Errorf(vtrpcpb.Code_INTERNAL, "table %v not found in schema", tableName)
return vterrors.Errorf(vtrpcpb.Code_NOT_FOUND, "table %v not found in schema", tableName)
}
}
return nil
Expand Down
3 changes: 2 additions & 1 deletion go/vt/wrangler/traffic_switcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -1918,7 +1918,8 @@ func (ts *trafficSwitcher) resetSequences(ctx context.Context) error {
return nil
}
return ts.ForAllSources(func(source *workflow.MigrationSource) error {
ts.Logger().Infof("Resetting sequences for source %s", source.GetPrimary().String())
ts.Logger().Infof("Resetting sequences for source shard %s.%s on tablet %s",
source.GetShard().Keyspace(), source.GetShard().ShardName(), source.GetPrimary().String())
return ts.TabletManagerClient().ResetSequences(ctx, source.GetPrimary().Tablet, ts.Tables())
})
}
4 changes: 2 additions & 2 deletions test/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -1008,12 +1008,12 @@
"RetryMax": 0,
"Tags": []
},
"vreplication_partial_movetables_simple": {
"vreplication_partial_movetables_basic": {
"File": "unused.go",
"Args": ["vitess.io/vitess/go/test/endtoend/vreplication", "-run", "PartialMoveTablesBasic"],
"Command": [],
"Manual": false,
"Shard": "vreplication_partial_movetables_simple",
"Shard": "vreplication_partial_movetables_basic",
"RetryMax": 0,
"Tags": []
},
Expand Down

0 comments on commit 2cc6d8d

Please sign in to comment.