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

Making DataNode not instantiate a HashMap when the node is ephmeral

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.1, 3.2.0
    • Fix Version/s: 3.3.0
    • Component/s: server
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Looking at the code, there is an overhead of a HashSet object for that nodes children, even though the node might be an ephmeral node and cannot have children.

        Attachments

        1. zookeeper-472.patch
          77 kB
          Erik Holstad
        2. zookeeper-472.patch
          49 kB
          Erik Holstad
        3. zookeeper-472.patch
          50 kB
          Erik Holstad
        4. zookeeper-472.patch
          46 kB
          Erik Holstad
        5. zookeeper-472.patch
          48 kB
          Patrick Hunt
        6. zookeeper-472.patch
          47 kB
          Erik Holstad

          Activity

            People

            • Assignee:
              erikholstad@gmail.com Erik Holstad
              Reporter:
              erikholstad@gmail.com Erik Holstad
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: