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

Fix NPE in DFSClient.getFileChecksum

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.23.0
    • 0.23.0, 1.0.0
    • None
    • None
    • 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-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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment