HDFS-11053. Unnecessary superuser check in versionRequest(). Contributed by Kihwal Lee.
(cherry picked from commit e90af4a89b
)
This commit is contained in:
parent
49adab66b8
commit
e7bd2e8d63
|
@ -1514,7 +1514,6 @@ public class NameNodeRpcServer implements NamenodeProtocols {
|
|||
@Override // DatanodeProtocol, NamenodeProtocol
|
||||
public NamespaceInfo versionRequest() throws IOException {
|
||||
checkNNStartup();
|
||||
namesystem.checkSuperuserPrivilege();
|
||||
return namesystem.getNamespaceInfo();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue