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