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

Code Cleanup in DFSInputStream

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1
    • None
    • None
    • Reviewed

    Description

      This is some code cleanup separate from HDFS-8272:

      1. Avoid duplicated block reader creation code
      2. If no new source DN can be found, getBestNodeDNAddrPair returns null instead of throwing Exception. Whether to throw Exception or not should be determined by getBestNodeDNAddrPair's caller.

      Attachments

        1. HDFS-8280.000.patch
          12 kB
          Jing Zhao

        Activity

          People

            jingzhao Jing Zhao
            jingzhao Jing Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: