免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
記錄一次程序與zookeeper斷開session連接的問題

在項目開發(fā)過程中,需要與zookeeper建立連接,但是在程序運行過程中,遇到了程序與zookeeper斷開連接的問題:

[2019-10-24 10:02:00.531] [Thread-7-SendThread(10.128.138.178:2181)] WARN  org.apache.zookeeper.ClientCnxn - Client session timed out, have not heard from server in 6354ms for sessionid 0x1023f975777000a[2019-10-24 10:02:00.531] [Thread-8-SendThread(10.128.138.178:2181)] WARN  org.apache.zookeeper.ClientCnxn - Client session timed out, have not heard from server in 5919ms for sessionid 0x1023f9757770009[2019-10-24 10:02:00.531] [Thread-8-SendThread(10.128.138.178:2181)] INFO  org.apache.zookeeper.ClientCnxn - Client session timed out, have not heard from server in 5919ms for sessionid 0x1023f9757770009, closing socket connection and attempting reconnect[2019-10-24 10:02:00.531] [Thread-7-SendThread(10.128.138.178:2181)] INFO  org.apache.zookeeper.ClientCnxn - Client session timed out, have not heard from server in 6354ms for sessionid 0x1023f975777000a, closing socket connection and attempting reconnect[2019-10-24 10:02:00.633] [Thread-8-EventThread] INFO  cn.cloudwalk.dist.base.handler.AbstractHandler - WatchedEvent state:Disconnected type:None path:null[2019-10-24 10:02:00.633] [Thread-7-EventThread] INFO  cn.cloudwalk.dist.base.handler.MasterHandler - master exist watch, WatchedEvent is: WatchedEvent state:Disconnected type:None path:null[2019-10-24 10:02:00.633] [Thread-7-EventThread] INFO  cn.cloudwalk.dist.base.handler.AbstractHandler - WatchedEvent state:Disconnected type:None path:null[2019-10-24 10:02:00.633] [Thread-8-EventThread] INFO  cn.cloudwalk.dist.base.handler.SlaveHandler - slaveExistsWatcher, WatchedEvent: WatchedEvent state:Disconnected type:None path:null[2019-10-24 10:02:01.942] [Thread-7-SendThread(10.128.138.178:2181)] INFO  org.apache.zookeeper.ClientCnxn - Opening socket connection to server 10.128.138.178/10.128.138.178:2181. Will not attempt to authenticate using SASL (unknown error)[2019-10-24 10:02:01.943] [Thread-7-SendThread(10.128.138.178:2181)] INFO  org.apache.zookeeper.ClientCnxn - Socket connection established to 10.128.138.178/10.128.138.178:2181, initiating session[2019-10-24 10:02:01.949] [Thread-7-SendThread(10.128.138.178:2181)] WARN  org.apache.zookeeper.ClientCnxn - Unable to reconnect to ZooKeeper service, session 0x1023f975777000a has expired[2019-10-24 10:02:01.949] [Thread-7-EventThread] INFO  cn.cloudwalk.dist.base.handler.MasterHandler - master exist watch, WatchedEvent is: WatchedEvent state:Expired type:None path:null[2019-10-24 10:02:01.949] [Thread-7-EventThread] INFO  cn.cloudwalk.dist.base.handler.AbstractHandler - WatchedEvent state:Expired type:None path:null[2019-10-24 10:02:01.949] [Thread-7-EventThread] ERROR cn.cloudwalk.dist.base.handler.AbstractHandler - Session expired[2019-10-24 10:02:01.949] [Thread-7-SendThread(10.128.138.178:2181)] INFO  org.apache.zookeeper.ClientCnxn - Unable to reconnect to ZooKeeper service, session 0x1023f975777000a has expired, closing socket connection[2019-10-24 10:02:01.950] [Thread-7-EventThread] INFO  org.apache.zookeeper.ClientCnxn - EventThread shut down for session: 0x1023f975777000a[2019-10-24 10:02:02.434] [Thread-8-SendThread(10.128.138.178:2181)] INFO  org.apache.zookeeper.ClientCnxn - Opening socket connection to server 10.128.138.178/10.128.138.178:2181. Will not attempt to authenticate using SASL (unknown error)[2019-10-24 10:02:02.434] [Thread-8-SendThread(10.128.138.178:2181)] INFO  org.apache.zookeeper.ClientCnxn - Socket connection established to 10.128.138.178/10.128.138.178:2181, initiating session[2019-10-24 10:02:02.435] [Thread-8-SendThread(10.128.138.178:2181)] WARN  org.apache.zookeeper.ClientCnxn - Unable to reconnect to ZooKeeper service, session 0x1023f9757770009 has expired[2019-10-24 10:02:02.435] [Thread-8-EventThread] INFO  cn.cloudwalk.dist.base.handler.AbstractHandler - WatchedEvent state:Expired type:None path:null[2019-10-24 10:02:02.435] [Thread-8-SendThread(10.128.138.178:2181)] INFO  org.apache.zookeeper.ClientCnxn - Unable to reconnect to ZooKeeper service, session 0x1023f9757770009 has expired, closing socket connection[2019-10-24 10:02:02.435] [Thread-8-EventThread] ERROR cn.cloudwalk.dist.base.handler.AbstractHandler - Session expired[2019-10-24 10:02:02.435] [Thread-8-EventThread] INFO  cn.cloudwalk.dist.base.handler.SlaveHandler - slaveExistsWatcher, WatchedEvent: WatchedEvent state:Expired type:None path:null

調(diào)查相關(guān)資料,發(fā)現(xiàn)可能產(chǎn)生問題的原因:

Your client can no longer talk to the ZooKeeper server. The first thing that happened was there was no answer to the heartbeats within the negotiated session timeout:

o.a.s.z.ClientCnxn [INFO] Client session timed out, have not heard from server in 23789ms for sessionid 0x252f862028c0083, closing socket connection and attempting reconnect

Then when it tried to reconnect, it got a connection refused:

o.a.s.z.ClientCnxn [WARN] Session 0x252f862028c0083 for server null, unexpected error, closing socket connection and attempting reconnect java.net.ConnectException: Connection refused

This means either your ZooKeeper server:

  • Is not reachable (network connection down)
  • Is dead (so nothing is listening on the socket)
  • Is GCing itself to death and cannot communicate (although that might have issued a connection timeout error, I'm not sure)

To tell more you will need to check the ZooKeeper server logs on your zookeeper cluster.

來源:https://www.icode9.com/content-1-523051.html
本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
zookeeper 中 Watcher 通知機制的一點理解
zookeeper項目使用幾點小結(jié)
Hadoop2.5.2+HA+Zookeeper3.4.6配置過程詳解 第2頁
『互聯(lián)網(wǎng)架構(gòu)』軟件架構(gòu)
zookeeper client分析
zookeeper編程(二)
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服