HADOOP-11491. HarFs incorrectly declared as requiring an authority. (Brahma Reddy Battula via gera)
(cherry picked from commit f343f8657e
)
This commit is contained in:
parent
9325dd863c
commit
58970d69de
|
@ -130,6 +130,9 @@ Release 2.8.0 - UNRELEASED
|
||||||
HADOOP-11866. increase readability and reliability of checkstyle,
|
HADOOP-11866. increase readability and reliability of checkstyle,
|
||||||
shellcheck, and whitespace reports (aw)
|
shellcheck, and whitespace reports (aw)
|
||||||
|
|
||||||
|
HADOOP-11491. HarFs incorrectly declared as requiring an authority.
|
||||||
|
(Brahma Reddy Battula via gera)
|
||||||
|
|
||||||
Release 2.7.1 - UNRELEASED
|
Release 2.7.1 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -27,7 +27,7 @@ import org.apache.hadoop.conf.Configuration;
|
||||||
public class HarFs extends DelegateToFileSystem {
|
public class HarFs extends DelegateToFileSystem {
|
||||||
HarFs(final URI theUri, final Configuration conf)
|
HarFs(final URI theUri, final Configuration conf)
|
||||||
throws IOException, URISyntaxException {
|
throws IOException, URISyntaxException {
|
||||||
super(theUri, new HarFileSystem(), conf, "har", true);
|
super(theUri, new HarFileSystem(), conf, "har", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -398,4 +398,11 @@ public class TestHarFileSystemBasics {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testHarFsWithoutAuthority() throws Exception {
|
||||||
|
final URI uri = harFileSystem.getUri();
|
||||||
|
Assert.assertNull("har uri authority not null: " + uri, uri.getAuthority());
|
||||||
|
FileContext.getFileContext(uri, conf);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue