Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-2568

Use a set to manage child sockets in XceiverServer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.0.0-alpha
    • 0.23.1
    • datanode
    • None
    • Reviewed

    Description

      Found while reading up for HDFS-2454, currently we maintain childSockets in a DataXceiverServer as a Map<Socket,Socket>. This can very well be a Set<Socket> data structure – since the goal is easy removals.

      Attachments

        1. HDFS-2568.patch
          2 kB
          Harsh J
        2. HDFS-2568.patch
          3 kB
          Harsh J

        Activity

          People

            qwertymaniac Harsh J
            qwertymaniac Harsh J
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: