HDFS-11053. Unnecessary superuser check in versionRequest(). Contributed by Kihwal Lee.

This commit is contained in:
Kihwal Lee 2016-10-26 09:16:13 -05:00
parent ce6bbfb23c
commit e90af4a89b

View File

@ -1531,7 +1531,6 @@ public void errorReport(DatanodeRegistration nodeReg,
@Override // DatanodeProtocol, NamenodeProtocol
public NamespaceInfo versionRequest() throws IOException {
checkNNStartup();
namesystem.checkSuperuserPrivilege();
return namesystem.getNamespaceInfo();
}