From fe60aff67838822793222236357ca4be049d02da Mon Sep 17 00:00:00 2001 From: YangruiEmma Date: Sun, 5 Jan 2025 00:14:05 +0800 Subject: [PATCH] test: debug 2 --- pkg/remote/trans/default_server_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/remote/trans/default_server_handler.go b/pkg/remote/trans/default_server_handler.go index e9db0e8bd0..f7cab47b92 100644 --- a/pkg/remote/trans/default_server_handler.go +++ b/pkg/remote/trans/default_server_handler.go @@ -94,7 +94,7 @@ func (t *svrTransHandler) Read(ctx context.Context, conn net.Conn, recvMsg remot stack := string(debug.Stack()) panicErr := kerrors.ErrPanic.WithCauseAndStack(fmt.Errorf("[happened in Read] %s", r), stack) rpcinfo.AsMutableRPCStats(ri.Stats()).SetPanicked(panicErr) - //err = remote.NewTransError(remote.ProtocolError, kerrors.ErrPanic.WithCauseAndStack(fmt.Errorf("[happened in Read] %s", r), stack)) + err = remote.NewTransError(remote.ProtocolError, panicErr) nctx = ctx } t.ext.ReleaseBuffer(bufReader, err)