Browse Source

HDFS-2923. Namenode IPC handler count uses the wrong configuration key. (Todd Lipcon) - Merging r1242220 from trunk.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23.1@1244268 13f79535-47bb-0310-9956-ffa450edef68
Mahadev Konar 13 năm trước cách đây
mục cha
commit
3f8defa16d

+ 3 - 0
hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt

@@ -231,6 +231,9 @@ Release 0.23.1 - 2012-02-08
     HDFS-2893. The start/stop scripts don't start/stop the 2NN when
     HDFS-2893. The start/stop scripts don't start/stop the 2NN when
     using the default configuration. (eli)
     using the default configuration. (eli)
 
 
+    HDFS-2923. Namenode IPC handler count uses the wrong configuration key.
+    (Todd Lipcon)
+
 Release 0.23.0 - 2011-11-01 
 Release 0.23.0 - 2011-11-01 
 
 
   INCOMPATIBLE CHANGES
   INCOMPATIBLE CHANGES

+ 2 - 2
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeRpcServer.java

@@ -124,8 +124,8 @@ class NameNodeRpcServer implements NamenodeProtocols {
     this.metrics = NameNode.getNameNodeMetrics();
     this.metrics = NameNode.getNameNodeMetrics();
     
     
     int handlerCount = 
     int handlerCount = 
-      conf.getInt(DFS_DATANODE_HANDLER_COUNT_KEY, 
-                  DFS_DATANODE_HANDLER_COUNT_DEFAULT);
+      conf.getInt(DFS_NAMENODE_HANDLER_COUNT_KEY, 
+                  DFS_NAMENODE_HANDLER_COUNT_DEFAULT);
     InetSocketAddress socAddr = nn.getRpcServerAddress(conf);
     InetSocketAddress socAddr = nn.getRpcServerAddress(conf);
 
 
     InetSocketAddress dnSocketAddr = nn.getServiceRpcServerAddress(conf);
     InetSocketAddress dnSocketAddr = nn.getServiceRpcServerAddress(conf);