Description
Here is current code of FSHDFSUtils#isFileClosed():
boolean isFileClosed(final DistributedFileSystem dfs, final Path p) { try { Method m = dfs.getClass().getMethod("isFileClosed", new Class<?>[] {String.class}); return (Boolean) m.invoke(dfs, p.toString());
We look for isFileClosed method with parameter type of String.
However, from hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DistributedFileSystem.java (branch-2):
public boolean isFileClosed(Path src) throws IOException {
The parameter type is of Path.
This means we would get NoSuchMethodException.
Attachments
Attachments
Issue Links
- is related to
-
HBASE-8670 [0.94] Backport HBASE-8449,HBASE-8204 and HBASE-8699 to 0.94 (Refactor recoverLease retries and pauses)
- Closed