Skip to content

Commit

Permalink
test: debug 4
Browse files Browse the repository at this point in the history
YangruiEmma committed Jan 4, 2025
1 parent 15cf1b9 commit 42fb869
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/remote/trans/default_server_handler.go
Original file line number Diff line number Diff line change
@@ -91,10 +91,10 @@ func (t *svrTransHandler) Read(ctx context.Context, conn net.Conn, recvMsg remot
ri := recvMsg.RPCInfo()
defer func() {
if r := recover(); r != nil {
stack := string(debug.Stack())
panicErr := kerrors.ErrPanic.WithCauseAndStack(fmt.Errorf("[happened in Read] %s", r), stack)
rpcinfo.AsMutableRPCStats(ri.Stats()).SetPanicked(panicErr)
//remote.NewTransError(remote.ProtocolError, panicErr)
//stack := string(debug.Stack())
//panicErr := kerrors.ErrPanic.WithCauseAndStack(fmt.Errorf("[happened in Read] %s", r), stack)
//rpcinfo.AsMutableRPCStats(ri.Stats()).SetPanicked(panicErr)
remote.NewTransError(remote.ProtocolError, errors.New(""))
nctx = ctx
}
t.ext.ReleaseBuffer(bufReader, err)

0 comments on commit 42fb869

Please sign in to comment.