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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 2.7.0
    • hdfs-client
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved: