HADOOP-15289. FileStatus.readFields() assertion incorrect.

Contributed by Steve Loughran.

(cherry picked from commit 12ecb55ffe)
This commit is contained in:
Steve Loughran 2018-03-06 10:08:28 +00:00
parent 4df200bc6d
commit a5cb7f3616
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@ public class FileStatus implements Writable, Comparable<Object>,
setSymlink((other.isSymlink() ? other.getSymlink() : null));
setPath(other.getPath());
attr = flags(other.hasAcl(), other.isEncrypted(), other.isErasureCoded());
assert (isDirectory() && getSymlink() == null) || !isDirectory();
assert !(isDirectory() && isSymlink()) : "A directory cannot be a symlink";
}
/**