From e90af4a89ba2741aeca20ead47699587b14f0de8 Mon Sep 17 00:00:00 2001 From: Kihwal Lee Date: Wed, 26 Oct 2016 09:16:13 -0500 Subject: [PATCH] HDFS-11053. Unnecessary superuser check in versionRequest(). Contributed by Kihwal Lee. --- .../apache/hadoop/hdfs/server/namenode/NameNodeRpcServer.java | 1 - 1 file changed, 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeRpcServer.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeRpcServer.java index 78941631985..c55c4d11100 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeRpcServer.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeRpcServer.java @@ -1531,7 +1531,6 @@ public class NameNodeRpcServer implements NamenodeProtocols { @Override // DatanodeProtocol, NamenodeProtocol public NamespaceInfo versionRequest() throws IOException { checkNNStartup(); - namesystem.checkSuperuserPrivilege(); return namesystem.getNamespaceInfo(); }