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

Fix NPE in DFSClient.getFileChecksum

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.0
    • Fix Version/s: 0.23.0, 1.0.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The following code can throw NPE if callGetBlockLocations returns null.

      If server returns null

          List<LocatedBlock> locatedblocks
              = callGetBlockLocations(namenode, src, 0, Long.MAX_VALUE).getLocatedBlocks();
      

      The right fix for this is server should throw right exception.

        Attachments

        1. HDFS-2065.patch
          3 kB
          Uma Maheswara Rao G
        2. HDFS-2065-1.patch
          0.7 kB
          Bharath Mundlapudi
        3. HDFS-2065-20.205Security.patch
          3 kB
          Uma Maheswara Rao G
        4. HDFS-2065-20.205Security.patch
          3 kB
          Uma Maheswara Rao G

          Issue Links

            Activity

              People

              • Assignee:
                umamaheswararao Uma Maheswara Rao G
                Reporter:
                bharathm Bharath Mundlapudi
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: