On branch-2, TestByteRangeInputStream.testPropagatedClose throw NPE when HftpFileSystem$RangeHeaderUrlOpener.connect
This is due to fix of
HDFS-6143 "WebHdfsFileSystem open should throw FileNotFoundException for non-existing paths"
public ByteRangeInputStream(URLOpener o, URLOpener r) throws IOException
the getInputStream() will be called in constructor now to verify if file exists.
Since we just try to test if ByteRangeInputStream#close is called at proper time, we could mock(ByteRangeInputStream.class, CALLS_REAL_METHODS) for testing to avoid the NPE issue.
I believe the trunk version already does this, we just need to merge the test from trunk.