Skip to content

Commit

Permalink
Silence 'CheckThrottler' gRPC calls (#13925)
Browse files Browse the repository at this point in the history
Signed-off-by: Shlomi Noach <[email protected]>
  • Loading branch information
shlomi-noach authored Sep 7, 2023
1 parent 86c1d23 commit 0154908
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go/vt/vttablet/grpctmserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ func (s *server) RestoreFromBackup(request *tabletmanagerdatapb.RestoreFromBacku
}

func (s *server) CheckThrottler(ctx context.Context, request *tabletmanagerdatapb.CheckThrottlerRequest) (response *tabletmanagerdatapb.CheckThrottlerResponse, err error) {
defer s.tm.HandleRPCPanic(ctx, "CheckThrottler", request, response, true /*verbose*/, &err)
defer s.tm.HandleRPCPanic(ctx, "CheckThrottler", request, response, false /*verbose*/, &err)
ctx = callinfo.GRPCCallInfo(ctx)
response, err = s.tm.CheckThrottler(ctx, request)
return response, err
Expand Down
2 changes: 1 addition & 1 deletion go/vt/vttablet/tmrpctest/test_tm_rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -1319,7 +1319,7 @@ func tmRPCTestRestoreFromBackupPanic(ctx context.Context, t *testing.T, client t

func tmRPCTestCheckThrottler(ctx context.Context, t *testing.T, client tmclient.TabletManagerClient, tablet *topodatapb.Tablet, req *tabletmanagerdatapb.CheckThrottlerRequest) {
_, err := client.CheckThrottler(ctx, tablet, req)
expectHandleRPCPanic(t, "CheckThrottler", true /*verbose*/, err)
expectHandleRPCPanic(t, "CheckThrottler", false /*verbose*/, err)
}

//
Expand Down

0 comments on commit 0154908

Please sign in to comment.