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

enable faster timeout of sessions in case of unexpected socket disconnect

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.5.4, 3.6.0
    • Component/s: server
    • Labels:
      None

      Description

      In the case when a client connection is closed due to socket error instead of the client calling close explicitly, it would be nice to enable the session associated with that client to time out faster than the negotiated session timeout. This would enable a zookeeper ensemble that is acting as a dynamic discovery provider to remove ephemeral nodes for crashed clients quickly, while allowing for a longer heartbeat-based timeout for java clients that need to do long stop-the-world GC.

      I propose doing this by setting the timeout associated with the crashed session to "minSessionTimeout".

        Attachments

        1. ZOOKEEPER-922.patch
          3 kB
          Camille Fournier

          Issue Links

            Activity

              People

              • Assignee:
                fournc Camille Fournier
                Reporter:
                fournc Camille Fournier
              • Votes:
                2 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated: