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

Fix potential NPE in DFSInputStream after setDropBehind or setReadahead is called

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.7.0
    • Component/s: hdfs-client
    • Labels:
      None
    • Target Version/s:

      Description

      Fix a potential NPE in DFSInputStream after setDropBehind or setReadahead is called. These functions clear the blockReader, but don't set blockEnd to -1, which could lead to DFSInputStream#seek attempting to derference blockReader even though it is null.

        Attachments

        1. HDFS-7744.002.patch
          3 kB
          Colin McCabe
        2. HDFS-7744.001.patch
          2 kB
          Colin McCabe

          Issue Links

            Activity

              People

              • Assignee:
                cmccabe Colin McCabe
                Reporter:
                cmccabe Colin McCabe
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: