HDFS-3328. NPE in DataNode.getIpcPort. Contributed by Eli Collins

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1336480 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eli Collins 2012-05-10 04:52:46 +00:00
parent b75f0187c8
commit a67054d7c3
2 changed files with 3 additions and 2 deletions

View File

@ -627,6 +627,8 @@ Release 2.0.0 - UNRELEASED
HDFS-3376. DFSClient fails to make connection to DN if there are many
unusable cached sockets (todd)
HDFS-3328. NPE in DataNode.getIpcPort. (eli)
BREAKDOWN OF HDFS-1623 SUBTASKS
HDFS-2179. Add fencing framework and mechanisms for NameNode HA. (todd)

View File

@ -860,7 +860,7 @@ String getStorageId() {
*/
public String getDisplayName() {
// NB: our DatanodeID may not be set yet
return hostName + ":" + getIpcPort();
return hostName + ":" + getXferPort();
}
/**
@ -877,7 +877,6 @@ public InetSocketAddress getXferAddress() {
/**
* @return the datanode's IPC port
*/
@VisibleForTesting
public int getIpcPort() {
return ipcServer.getListenerAddress().getPort();
}