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

Publish the value of getIdleRecv() in WatchedEvent of Disconnected

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.5.3
    • None
    • java client
    • None

    Description

      In the class ClientCnxn, at the line 1247:
      eventThread.queueEvent(new WatchedEvent(
                                          Event.EventType.None,
                                          Event.KeeperState.Disconnected,
                                          null));

      The current value of getIdleRecv() could be published inside the WatchedEvent, so that the clients that are listening to this event could know exactly how many time has been elapsed.

      This would be specially useful in the case of the message "Client session timed out, have not heard from server in " . When the client receive a WatchedEvent with Event.KeeperState.Disconnected, it doesn't know if it was due to a immediate loss of connection or a lack of heart beats. Publishing the value of getIdleRecv() would give a clue on that.

      Attachments

        Activity

          People

            Unassigned Unassigned
            arrodrigues Antonio Rafael Rodrigues
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: