Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-4412

client blocked too long before session timeout

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 3.4.14
    • None
    • java client
    • None

    Description

      set Negotiated session timeout: 40000

      I have thousands of zk clients under a zk cluster, when switch failure, some of  clients did not send suspend event to state listner after 204988ms, but indeed session was expired in server as expected in server after 40000ms

      // code placeholder
      [10.10.10.2][my-app][2021-11-05 13:55:38.701][ WARN][????][16.195.152:2181)][o.a.z.ClientCnxn                        ] : [][][]Client session timed out, have not heard from server in 204988ms for sessionid 0x405005d85480c3d 
      [10.10.10.2][my-app][2021-10-30 15:55:39.275][ WARN][????][16.195.152:218)][o.a.z.ClientCnxn                        ] : [][][]Unable to reconnect to ZooKeeper service, session 0x405005d85480c3d has expired 
      [10.10.10.2][my-app][2021-10-30 15:55:39.275][ WARN][????][ain-EventThread][o.a.c.ConnectionState                   ] : [][][]Session expired event received

      why after 204988ms this client found client session timeout ? socket read timeout = 2/3 * sessiont time out , it  blocked too long to discover network failure. what may cause this scene?

      Attachments

        Activity

          People

            Unassigned Unassigned
            rj0903 tian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: