You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/08/03 06:50:38 UTC

[GitHub] [dubbo-go] gaohuag opened a new issue #1362: getty 偶现panic,程序退出

gaohuag opened a new issue #1362:
URL: https://github.com/apache/dubbo-go/issues/1362


   <!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!
   
   -->
   
   
   **What happened**:
   使用dubbo-go的程序会异常退出
   
   **What you expected to happen**:
   如果发生异常,能通过recover捕获异常。
   **How to reproduce it (as minimally and precisely as possible)**:
   偶现的,我也不知道怎么重现问题
   **Anything else we need to know?**:
   一些错误提示:
   `2021-08-03T07:25:46.724+0100  DEBUG  getty/pool.go:195  add session{session {client:TCP_CLIENT:24:10.0.2.15:34697<->172.31.229.155:20889}, Read Bytes: 0, Write Bytes: 0, Read Pkgs: 0, Write Pkgs: 0}
   2021-08-03T07:25:46.724+0100  ERROR  getty/pool.go:157  tcpConn.SetKeepAlivePeriod() = error:%vset tcp 10.0.2.15:43983->172.31.40.48:28089: setsockopt: invalid argument
   github.com/apache/dubbo-go/remoting/getty.(*gettyRPCClient).newSession
     /golang/monitor-agent/vendor/github.com/apache/dubbo-go/remoting/getty/pool.go:157
   github.com/apache/dubbo-getty.(*client).connect
     /golang/monitor-agent/vendor/github.com/apache/dubbo-getty/client.go:391
   github.com/apache/dubbo-getty.(*client).reConnect
     /golang/monitor-agent/vendor/github.com/apache/dubbo-getty/client.go:443
   github.com/apache/dubbo-getty.(*client).RunEventLoop
     /golang/monitor-agent/vendor/github.com/apache/dubbo-getty/client.go:421
   panic: @rTimeout < 1
   
   goroutine 6331 [running]:
   github.com/apache/dubbo-getty.(*gettyConn).SetReadTimeout(0xc000b5e410, 0x0)
     /golang/monitor-agent/vendor/github.com/apache/dubbo-getty/connection.go:118 +0x65
   github.com/apache/dubbo-go/remoting/getty.(*gettyRPCClient).newSession(0xc00017e000, 0x12436d0, 0xc0004569c0, 0x12436d0, 0xc0004569c0)
     /golang/monitor-agent/vendor/github.com/apache/dubbo-go/remoting/getty/pool.go:171 +0x892
   github.com/apache/dubbo-getty.(*client).connect(0xc000a61040)
     /golang/monitor-agent/vendor/github.com/apache/dubbo-getty/client.go:391 +0xa4
   github.com/apache/dubbo-getty.(*client).reConnect(0xc000a61040)
     /golang/monitor-agent/vendor/github.com/apache/dubbo-getty/client.go:443 +0x56
   github.com/apache/dubbo-getty.(*client).RunEventLoop(0xc000a61040, 0xc000254410)
     /golang/monitor-agent/vendor/github.com/apache/dubbo-getty/client.go:421 +0x6d
   created by github.com/apache/dubbo-go/remoting/getty.newGettyRPCClientConn
     /golang/monitor-agent/vendor/github.com/apache/dubbo-go/remoting/getty/pool.go:82 +0x22b`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] LaurenceLiZhixin closed issue #1362: getty 偶现panic,程序退出

Posted by GitBox <gi...@apache.org>.
LaurenceLiZhixin closed issue #1362:
URL: https://github.com/apache/dubbo-go/issues/1362


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] Lvnszn edited a comment on issue #1362: getty 偶现panic,程序退出

Posted by GitBox <gi...@apache.org>.
Lvnszn edited a comment on issue #1362:
URL: https://github.com/apache/dubbo-go/issues/1362#issuecomment-894281870


   你好,可以了解一下您这边的配置会替换掉consumerConfig里面的protocalConf这个字段么? @gaohuag


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] LaurenceLiZhixin commented on issue #1362: getty 偶现panic,程序退出

Posted by GitBox <gi...@apache.org>.
LaurenceLiZhixin commented on issue #1362:
URL: https://github.com/apache/dubbo-go/issues/1362#issuecomment-898162750


   @gaohuag Any feedback?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] LaurenceLiZhixin commented on issue #1362: getty 偶现panic,程序退出

Posted by GitBox <gi...@apache.org>.
LaurenceLiZhixin commented on issue #1362:
URL: https://github.com/apache/dubbo-go/issues/1362#issuecomment-894168024


   @Mulavar 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] Mulavar commented on issue #1362: getty 偶现panic,程序退出

Posted by GitBox <gi...@apache.org>.
Mulavar commented on issue #1362:
URL: https://github.com/apache/dubbo-go/issues/1362#issuecomment-900028735


   看日志,应该是设置 getty 参数时 tcp_read_timeout 设置的值过小,这个参数必须大于等于 1s,否则就会 panic。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] Mulavar commented on issue #1362: getty 偶现panic,程序退出

Posted by GitBox <gi...@apache.org>.
Mulavar commented on issue #1362:
URL: https://github.com/apache/dubbo-go/issues/1362#issuecomment-898173418


   能否具体描述一下产生这个问题时的场景,比如当时你在做什么操作,是起了大量client或者是写了复杂的调用逻辑么?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] Lvnszn commented on issue #1362: getty 偶现panic,程序退出

Posted by GitBox <gi...@apache.org>.
Lvnszn commented on issue #1362:
URL: https://github.com/apache/dubbo-go/issues/1362#issuecomment-894281870


   你好,可以了解一下您这边的配置会替换掉consumerConfig里面的protocalConf这个字段么?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org