HADOOP-13605. Clean up FileSystem javadocs, logging; improve diagnostics on FS load. Contributed by Steve Loughran
This commit is contained in:
parent
4379658042
commit
57b17ae800
File diff suppressed because it is too large
Load Diff
|
@ -416,7 +416,7 @@ If the filesystem is not location aware, it SHOULD return
|
||||||
BlockLocation(["localhost:50010"] ,
|
BlockLocation(["localhost:50010"] ,
|
||||||
["localhost"],
|
["localhost"],
|
||||||
["/default/localhost"]
|
["/default/localhost"]
|
||||||
0, F.getLen())
|
0, f.getLen())
|
||||||
] ;
|
] ;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -95,16 +95,14 @@ public class TestFileSystemCaching {
|
||||||
try {
|
try {
|
||||||
fs = FileSystem.get(URI.create("//host"), conf);
|
fs = FileSystem.get(URI.create("//host"), conf);
|
||||||
fail("got fs with auth but no scheme");
|
fail("got fs with auth but no scheme");
|
||||||
} catch (Exception e) {
|
} catch (UnsupportedFileSystemException e) {
|
||||||
assertEquals("No FileSystem for scheme: null", e.getMessage());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// no scheme, different auth
|
// no scheme, different auth
|
||||||
try {
|
try {
|
||||||
fs = FileSystem.get(URI.create("//host2"), conf);
|
fs = FileSystem.get(URI.create("//host2"), conf);
|
||||||
fail("got fs with auth but no scheme");
|
fail("got fs with auth but no scheme");
|
||||||
} catch (Exception e) {
|
} catch (UnsupportedFileSystemException e) {
|
||||||
assertEquals("No FileSystem for scheme: null", e.getMessage());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue