You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by el...@apache.org on 2014/12/08 22:57:22 UTC

[2/3] accumulo git commit: ACCUMULO-3269 Set REUSEADDR on the Socket.

ACCUMULO-3269 Set REUSEADDR on the Socket.

Setting SO_REUSEADDR on the Socket used to ask
ZooKeeper if "it's ok" appears to help mitigate
the spurious issue when ZooKeeper would fail to
bind to an otherwise free port.


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/8f4eae77
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/8f4eae77
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/8f4eae77

Branch: refs/heads/master
Commit: 8f4eae77d12e4b3a54ef2cd176c7cd26b2af326a
Parents: 6289567
Author: Josh Elser <el...@apache.org>
Authored: Mon Dec 8 15:40:43 2014 -0500
Committer: Josh Elser <el...@apache.org>
Committed: Mon Dec 8 15:40:43 2014 -0500

----------------------------------------------------------------------
 .../apache/accumulo/minicluster/impl/MiniAccumuloClusterImpl.java   | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/8f4eae77/minicluster/src/main/java/org/apache/accumulo/minicluster/impl/MiniAccumuloClusterImpl.java
----------------------------------------------------------------------
diff --git a/minicluster/src/main/java/org/apache/accumulo/minicluster/impl/MiniAccumuloClusterImpl.java b/minicluster/src/main/java/org/apache/accumulo/minicluster/impl/MiniAccumuloClusterImpl.java
index 244b721..8877b5d 100644
--- a/minicluster/src/main/java/org/apache/accumulo/minicluster/impl/MiniAccumuloClusterImpl.java
+++ b/minicluster/src/main/java/org/apache/accumulo/minicluster/impl/MiniAccumuloClusterImpl.java
@@ -539,6 +539,7 @@ public class MiniAccumuloClusterImpl implements AccumuloCluster {
           Socket s = null;
           try {
             s = new Socket("localhost", config.getZooKeeperPort());
+            s.setReuseAddress(true);
             s.getOutputStream().write("ruok\n".getBytes());
             s.getOutputStream().flush();
             byte buffer[] = new byte[100];