HDFS-11053. Unnecessary superuser check in versionRequest(). Contributed by Kihwal Lee.
(cherry picked from commit e90af4a89b
)
This commit is contained in:
parent
366ebb0822
commit
0cd43dd2b7
|
@ -1527,7 +1527,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