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

DFSInputStream#blockSeekTo may print incorrect warn msg for IOException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 3.0.0-alpha1
    • None
    • None

    Description

      In DFSInputStream#blockSeekTo, for most IOExceptions (except InvalidEncryptionKeyException and InvalidBlockTokenException), the current code only prints "Failed to connect to targetAddr", which can be incorrect since there are other possible cases, e.g., the chosen node (remote/local) can be connected but the block/replica cannot be found. The correct error msg (including the error msg from remote node) should be printed to log.

      Attachments

        1. HDFS-3927.patch
          3 kB
          Jing Zhao

        Activity

          People

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

            Dates

              Created:
              Updated: