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:
parent
b75f0187c8
commit
a67054d7c3
|
@ -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)
|
||||
|
|
|
@ -860,7 +860,7 @@ public class DataNode extends Configured
|
|||
*/
|
||||
public String getDisplayName() {
|
||||
// NB: our DatanodeID may not be set yet
|
||||
return hostName + ":" + getIpcPort();
|
||||
return hostName + ":" + getXferPort();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -877,7 +877,6 @@ public class DataNode extends Configured
|
|||
/**
|
||||
* @return the datanode's IPC port
|
||||
*/
|
||||
@VisibleForTesting
|
||||
public int getIpcPort() {
|
||||
return ipcServer.getListenerAddress().getPort();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue