Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10419

BufferedFSInputStream NPEs on getPos() on a closed stream

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha1
    • Fix Version/s: 2.5.0
    • Component/s: fs
    • Labels:
      None

      Description

      if you call getPos on a ChecksumFileSystem after a close() you get an NPE.

      While throwing an exception in this states is legitimate (HDFS does, RawLocal does not), it should be an IOException

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stevel@apache.org Steve Loughran
                Reporter:
                stevel@apache.org Steve Loughran
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0.25h
                  0.25h
                  Remaining:
                  Remaining Estimate - 0.25h
                  0.25h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified