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

DFSClient should cache whether addrs are non-local when short-circuiting is enabled

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.1, 1.0.0
    • Fix Version/s: 0.23.1, 1.1.0
    • Component/s: datanode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Something Todd mentioned to me off-line.. currently DFSClient doesn't cache the fact that non-local reads are non-local, so if short-circuiting is enabled every time we create a block reader we'll go through the isLocalAddress code path. We should cache the fact that an addr is non-local as well.

        Attachments

        1. hdfs-2653-b1-2.patch
          1 kB
          Eli Collins
        2. hdfs-2653-b1-1.patch
          1 kB
          Eli Collins
        3. hdfs-2653-2.patch
          2 kB
          Eli Collins
        4. hdfs-2653-2.patch
          2 kB
          Eli Collins
        5. hdfs-2653-1.patch
          2 kB
          Eli Collins

          Activity

            People

            • Assignee:
              eli Eli Collins
              Reporter:
              eli Eli Collins
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: