Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-2065

Fix NPE in DFSClient.getFileChecksum

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.0
    • Fix Version/s: 0.23.0, 0.24.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.

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

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development