Uploaded image for project: 'Apache Curator'
  1. Apache Curator
  2. CURATOR-185

Create a LOST_SESSION connection state

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 2.7.1
    • None
    • Client
    • None

    Description

      Since the LOST connection state doesn't have anything to do with the loss of the ZK session, it would be very useful to have an event for it.

      Suggested implementation to detect the loss of session:

      • Upon reception of the SUSPENDED state, start a timer
      • if we receive a RECONNECTED event, check the session ID. If we have a different session ID, then our session has been lost
      • if we didn't receive a RECONNECTED event and the time reaches <sessionTimeoutMs>, our session is lost

      That should inform the user of the loss of a session in a timely fashion.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              benjamin.jaton Benjamin Jaton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: