HADOOP-11491. HarFs incorrectly declared as requiring an authority. (Brahma Reddy Battula via gera)
(cherry picked from commitf343f8657e
) (cherry picked from commit58970d69de
)
This commit is contained in:
parent
262275d561
commit
c90f025e90
|
@ -60,6 +60,9 @@ Release 2.6.1 - UNRELEASED
|
||||||
HADOOP-11802: DomainSocketWatcher thread terminates sometimes after there
|
HADOOP-11802: DomainSocketWatcher thread terminates sometimes after there
|
||||||
is an I/O error during requestShortCircuitShm (cmccabe)
|
is an I/O error during requestShortCircuitShm (cmccabe)
|
||||||
|
|
||||||
|
HADOOP-11491. HarFs incorrectly declared as requiring an authority.
|
||||||
|
(Brahma Reddy Battula via gera)
|
||||||
|
|
||||||
Release 2.6.0 - 2014-11-18
|
Release 2.6.0 - 2014-11-18
|
||||||
|
|
||||||
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