You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ar...@apache.org on 2017/02/03 20:28:37 UTC
[1/2] hadoop git commit: HDFS-11387. Socket reuse address option is
not honored in PrivilegedNfsGatewayStarter. Contributed by Mukul Kumar Singh.
Repository: hadoop
Updated Branches:
refs/heads/branch-2 b0a1703f1 -> f17d3eddc
refs/heads/trunk 0914fcca3 -> e0235842a
HDFS-11387. Socket reuse address option is not honored in PrivilegedNfsGatewayStarter. Contributed by Mukul Kumar Singh.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/e0235842
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/e0235842
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/e0235842
Branch: refs/heads/trunk
Commit: e0235842a74f1a1a62051ebb8c9dbd47324fcc25
Parents: 0914fcc
Author: Arpit Agarwal <ar...@apache.org>
Authored: Fri Feb 3 12:28:05 2017 -0800
Committer: Arpit Agarwal <ar...@apache.org>
Committed: Fri Feb 3 12:28:05 2017 -0800
----------------------------------------------------------------------
.../hadoop/hdfs/nfs/nfs3/PrivilegedNfsGatewayStarter.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/e0235842/hadoop-hdfs-project/hadoop-hdfs-nfs/src/main/java/org/apache/hadoop/hdfs/nfs/nfs3/PrivilegedNfsGatewayStarter.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs-nfs/src/main/java/org/apache/hadoop/hdfs/nfs/nfs3/PrivilegedNfsGatewayStarter.java b/hadoop-hdfs-project/hadoop-hdfs-nfs/src/main/java/org/apache/hadoop/hdfs/nfs/nfs3/PrivilegedNfsGatewayStarter.java
index 695cbc3..9456caf 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-nfs/src/main/java/org/apache/hadoop/hdfs/nfs/nfs3/PrivilegedNfsGatewayStarter.java
+++ b/hadoop-hdfs-project/hadoop-hdfs-nfs/src/main/java/org/apache/hadoop/hdfs/nfs/nfs3/PrivilegedNfsGatewayStarter.java
@@ -54,9 +54,11 @@ public class PrivilegedNfsGatewayStarter implements Daemon {
}
try {
- registrationSocket = new DatagramSocket(
- new InetSocketAddress("localhost", clientPort));
+ InetSocketAddress socketAddress =
+ new InetSocketAddress("localhost", clientPort);
+ registrationSocket = new DatagramSocket(null);
registrationSocket.setReuseAddress(true);
+ registrationSocket.bind(socketAddress);
} catch (SocketException e) {
LOG.error("Init failed for port=" + clientPort, e);
throw e;
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org
[2/2] hadoop git commit: HDFS-11387. Socket reuse address option is
not honored in PrivilegedNfsGatewayStarter. Contributed by Mukul Kumar Singh.
Posted by ar...@apache.org.
HDFS-11387. Socket reuse address option is not honored in PrivilegedNfsGatewayStarter. Contributed by Mukul Kumar Singh.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/f17d3edd
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/f17d3edd
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/f17d3edd
Branch: refs/heads/branch-2
Commit: f17d3eddcfdca6ac65c2f8a403e1f48c4c08f830
Parents: b0a1703
Author: Arpit Agarwal <ar...@apache.org>
Authored: Fri Feb 3 12:28:05 2017 -0800
Committer: Arpit Agarwal <ar...@apache.org>
Committed: Fri Feb 3 12:28:17 2017 -0800
----------------------------------------------------------------------
.../hadoop/hdfs/nfs/nfs3/PrivilegedNfsGatewayStarter.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/f17d3edd/hadoop-hdfs-project/hadoop-hdfs-nfs/src/main/java/org/apache/hadoop/hdfs/nfs/nfs3/PrivilegedNfsGatewayStarter.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs-nfs/src/main/java/org/apache/hadoop/hdfs/nfs/nfs3/PrivilegedNfsGatewayStarter.java b/hadoop-hdfs-project/hadoop-hdfs-nfs/src/main/java/org/apache/hadoop/hdfs/nfs/nfs3/PrivilegedNfsGatewayStarter.java
index 695cbc3..9456caf 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-nfs/src/main/java/org/apache/hadoop/hdfs/nfs/nfs3/PrivilegedNfsGatewayStarter.java
+++ b/hadoop-hdfs-project/hadoop-hdfs-nfs/src/main/java/org/apache/hadoop/hdfs/nfs/nfs3/PrivilegedNfsGatewayStarter.java
@@ -54,9 +54,11 @@ public class PrivilegedNfsGatewayStarter implements Daemon {
}
try {
- registrationSocket = new DatagramSocket(
- new InetSocketAddress("localhost", clientPort));
+ InetSocketAddress socketAddress =
+ new InetSocketAddress("localhost", clientPort);
+ registrationSocket = new DatagramSocket(null);
registrationSocket.setReuseAddress(true);
+ registrationSocket.bind(socketAddress);
} catch (SocketException e) {
LOG.error("Init failed for port=" + clientPort, e);
throw e;
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org