HDFS-11053. Unnecessary superuser check in versionRequest(). Contributed by Kihwal Lee.
This commit is contained in:
parent
ce6bbfb23c
commit
e90af4a89b
@ -1531,7 +1531,6 @@ public void errorReport(DatanodeRegistration nodeReg,
|
|||||||
@Override // DatanodeProtocol, NamenodeProtocol
|
@Override // DatanodeProtocol, NamenodeProtocol
|
||||||
public NamespaceInfo versionRequest() throws IOException {
|
public NamespaceInfo versionRequest() throws IOException {
|
||||||
checkNNStartup();
|
checkNNStartup();
|
||||||
namesystem.checkSuperuserPrivilege();
|
|
||||||
return namesystem.getNamespaceInfo();
|
return namesystem.getNamespaceInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user