HADOOP-15289. FileStatus.readFields() assertion incorrect.
Contributed by Steve Loughran.
This commit is contained in:
parent
55ba49dd07
commit
12ecb55ffe
@ -502,7 +502,7 @@ public void readFields(DataInput in) throws IOException {
|
||||
setPath(other.getPath());
|
||||
attr = attributes(other.hasAcl(), other.isEncrypted(),
|
||||
other.isErasureCoded(), other.isSnapshotEnabled());
|
||||
assert (isDirectory() && getSymlink() == null) || !isDirectory();
|
||||
assert !(isDirectory() && isSymlink()) : "A directory cannot be a symlink";
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user