Skip to content

Commit 331c779

Browse files
committed
test: debug
1 parent 6fd144f commit 331c779

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pkg/remote/trans/default_server_handler.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,10 @@ func (t *svrTransHandler) Read(ctx context.Context, conn net.Conn, recvMsg remot
9191
defer func() {
9292
if r := recover(); r != nil {
9393
stack := string(debug.Stack())
94-
panicErr := kerrors.ErrPanic.WithCauseAndStack(fmt.Errorf("[happened in Read] %s", r), stack)
95-
rpcStats := rpcinfo.AsMutableRPCStats(recvMsg.RPCInfo().Stats())
96-
rpcStats.SetPanicked(panicErr)
94+
kerrors.ErrPanic.WithCauseAndStack(fmt.Errorf("[happened in Read] %s", r), stack)
95+
//panicErr := kerrors.ErrPanic.WithCauseAndStack(fmt.Errorf("[happened in Read] %s", r), stack)
96+
//rpcStats := rpcinfo.AsMutableRPCStats(recvMsg.RPCInfo().Stats())
97+
//rpcStats.SetPanicked(panicErr)
9798
//err = remote.NewTransError(remote.ProtocolError, kerrors.ErrPanic.WithCauseAndStack(fmt.Errorf("[happened in Read] %s", r), stack))
9899
nctx = ctx
99100
}

0 commit comments

Comments
 (0)