Repository navigation
Description
Is there an existing issue for the same bug?
- I have checked the existing issues.
Environment
- Version or commit-id (e.g. v0.1.0 or 8b23a93): 245c861
- Hardware parameters:
- OS type:
- Others:Actual Behavior
After running TPCH 100G test and oltp point select 100 terminal test , the count of connecitons between 2cns are more than 29000.

and cn1 continuously report error messages:
mmon/morpc.(*client).createBackendLocked\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/client.go:444\ngithub.com/matrixorigin/matrixone/pkg/common/morpc.(*client).createTask\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/client.go:406\ngithub.com/matrixorigin/matrixone/pkg/common/stopper.(*Stopper).doRunCancelableTask.func1\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/stopper/stopper.go:259"}
{"level":"ERROR","time":"2023/05/19 01:59:26.736482 +0000","name":"cn-backend","caller":"morpc/backend.go:718","msg":"init remote connection failed, retry later","remote":"nightly-regression-dis-tp-cn-1.nightly-regression-dis-tp-cn-headless.mo-nightly-regression.svc:6002","backend-id":"6f3eb4a2-fbca-4146-8e32-be8a57fcb074","error":"dial tcp4 10.0.101.228:6002: connect: cannot assign requested address"}
{"level":"ERROR","time":"2023/05/19 01:59:28.341587 +0000","caller":"morpc/backend.go:740","msg":"error: can not connect to remote backend","stacktrace":"github.com/matrixorigin/matrixone/pkg/common/morpc.(*remoteBackend).resetConn\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/backend.go:740\ngithub.com/matrixorigin/matrixone/pkg/common/morpc.NewRemoteBackend\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/backend.go:207\ngithub.com/matrixorigin/matrixone/pkg/common/morpc.(*goettyBasedBackendFactory).Create\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/backend.go:833\ngithub.com/matrixorigin/matrixone/pkg/common/morpc.(*client).doCreate\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/client.go:456\ngithub.com/matrixorigin/matrixone/pkg/common/morpc.(*client).createBackendLocked\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/client.go:444\ngithub.com/matrixorigin/matrixone/pkg/common/morpc.(*client).createTask\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/client.go:406\ngithub.com/matrixorigin/matrixone/pkg/common/stopper.(*Stopper).doRunCancelableTask.func1\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/stopper/stopper.go:259"}
{"level":"ERROR","time":"2023/05/19 01:59:28.355950 +0000","name":"cn-backend","caller":"morpc/backend.go:718","msg":"init remote connection failed, retry later","remote":"nightly-regression-dis-tp-cn-1.nightly-regression-dis-tp-cn-headless.mo-nightly-regression.svc:6002","backend-id":"6f3eb4a2-fbca-4146-8e32-be8a57fcb074","error":"dial tcp4 10.0.101.228:6002: connect: cannot assign requested address"}
{"level":"ERROR","time":"2023/05/19 01:59:30.761762 +0000","caller":"morpc/backend.go:726","msg":"error: can not connect to remote backend","stacktrace":"github.com/matrixorigin/matrixone/pkg/common/morpc.(*remoteBackend).resetConn\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/backend.go:726\ngithub.com/matrixorigin/matrixone/pkg/common/morpc.NewRemoteBackend\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/backend.go:207\ngithub.com/matrixorigin/matrixone/pkg/common/morpc.(*goettyBasedBackendFactory).Create\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/backend.go:833\ngithub.com/matrixorigin/matrixone/pkg/common/morpc.(*client).doCreate\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/client.go:456\ngithub.com/matrixorigin/matrixone/pkg/common/morpc.(*client).createBackendLocked\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/client.go:444\ngithub.com/matrixorigin/matrixone/pkg/common/morpc.(*client).createTask\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/client.go:406\ngithub.com/matrixorigin/matrixone/pkg/common/stopper.(*Stopper).doRunCancelableTask.func1\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/stopper/stopper.go:259"}
{"level":"ERROR","time":"2023/05/19 01:59:30.761801 +0000","name":"cn-backend","caller":"morpc/backend.go:208","msg":"connect to remote failed","remote":"nightly-regression-dis-tp-cn-1.nightly-regression-dis-tp-cn-headless.mo-nightly-regression.svc:6002","backend-id":"6f3eb4a2-fbca-4146-8e32-be8a57fcb074","error":"can not connect to remote backend"}
{"level":"ERROR","time":"2023/05/19 01:59:30.761813 +0000","name":"cn-backend.rpc-client[cn-client]","caller":"morpc/client.go:458","msg":"create backend failed","backend":"nightly-regression-dis-tp-cn-1.nightly-regression-dis-tp-cn-headless.mo-nightly-regression.svc:6002","error":"can not connect to remote backend"}
{"level":"ERROR","time":"2023/05/19 01:59:30.761827 +0000","name":"cn-backend.rpc-client[cn-client]","caller":"morpc/client.go:407","msg":"create backend failed","backend":"nightly-regression-dis-tp-cn-1.nightly-regression-dis-tp-cn-headless.mo-nightly-regression.svc:6002","error":"can not connect to remote backend"}
{"level":"ERROR","time":"2023/05/19 01:59:30.771087 +0000","name":"cn-backend","caller":"morpc/backend.go:718","msg":"init remote connection failed, retry later","remote":"nightly-regression-dis-tp-cn-1.nightly-regression-dis-tp-cn-headless.mo-nightly-regression.svc:6002","backend-id":"fdc784d8-a2fe-41ad-b95b-65868d2ebbbd","error":"dial tcp4 10.0.101.228:6002: connect: cannot assign requested address"}
{"level":"ERROR","time":"2023/05/19 01:59:31.774269 +0000","caller":"morpc/backend.go:740","msg":"error: can not connect to remote backend","stacktrace":"github.com/matrixorigin/matrixone/pkg/common/morpc.(*remoteBackend).resetConn\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/backend.go:740\ngithub.com/matrixorigin/matrixone/pkg/common/morpc.NewRemoteBackend\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/backend.go:207\ngithub.com/matrixorigin/matrixone/pkg/common/morpc.(*goettyBasedBackendFactory).Create\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/backend.go:833\ngithub.com/matrixorigin/matrixone/pkg/common/morpc.(*client).doCreate\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/client.go:456\ngithub.com/matrixorigin/matrixone/pkg/common/morpc.(*client).createBackendLocked\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/client.go:444\ngithub.com/matrixorigin/matrixone/pkg/common/morpc.(*client).createTask\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/client.go:406\ngithub.com/matrixorigin/matrixone/pkg/common/stopper.(*Stopper).doRunCancelableTask.func1\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/stopper/stopper.go:259"}
{"level":"ERROR","time":"2023/05/19 01:59:31.787551 +0000","name":"cn-backend","caller":"morpc/backend.go:718","msg":"init remote connection failed, retry later","remote":"nightly-regression-dis-tp-cn-1.nightly-regression-dis-tp-cn-headless.mo-nightly-regression.svc:6002","backend-id":"fdc784d8-a2fe-41ad-b95b-65868d2ebbbd","error":"dial tcp4 10.0.101.228:6002: connect: cannot assign requested address"}
{"level":"ERROR","time":"2023/05/19 01:59:33.391846 +0000","caller":"morpc/backend.go:740","msg":"error: can not connect to remote backend","stacktrace":"github.com/matrixorigin/matrixone/pkg/common/morpc.(*remoteBackend).resetConn\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/backend.go:740\ngithub.com/matrixorigin/matrixone/pkg/common/morpc.NewRemoteBackend\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/backend.go:207\ngithub.com/matrixorigin/matrixone/pkg/common/morpc.(*goettyBasedBackendFactory).Create\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/backend.go:833\ngithub.com/matrixorigin/matrixone/pkg/common/morpc.(*client).doCreate\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/client.go:456\ngithub.com/matrixorigin/matrixone/pkg/common/morpc.(*client).createBackendLocked\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/client.go:444\ngithub.com/matrixorigin/matrixone/pkg/common/morpc.(*client).createTask\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/morpc/client.go:406\ngithub.com/matrixorigin/matrixone/pkg/common/stopper.(*Stopper).doRunCancelableTask.func1\n\t/go/src/github.com/matrixorigin/matrixone/pkg/common/stopper/stopper.go:259"}
{"level":"ERROR","time":"2023/05/19 01:59:33.407833 +0000","name":"cn-backend","caller":"morpc/backend.go:718","msg":"init remote connection failed, retry later","remote":"nightly-regression-dis-tp-cn-1.nightly-regression-dis-tp-cn-headless.
and has discussed by @m-schen , he know about the problem ,and do not need logs.
Expected Behavior
No response
Steps to Reproduce
No response
Additional information
No response
Activity
LeftHandCold commentedon May 19, 2023
@m-schen plz
m-schen commentedon May 20, 2023
大概找到原因了,是tcp连接的关闭不太正确。
但是不是不能从根本上解决tcp链接很多的问题,pipeline之间目前存在循环依赖的问题,不能完全复用同一个tcp链接。否则存在tcp buffer占满导致死锁的错误。
m-schen commentedon May 21, 2023
pr合进去后可以验证一下问题。
m-schen commentedon May 22, 2023
可以验证一下。
aressu1985 commentedon May 25, 2023
fixed