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 2013/10/18 00:56:38 UTC
git commit: ACCUMULO-1786 Use the PortUtils to get a free port for
the test
Updated Branches:
refs/heads/1.4.5-SNAPSHOT 3705acd8e -> 19e24abff
ACCUMULO-1786 Use the PortUtils to get a free port for the test
Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/19e24abf
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/19e24abf
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/19e24abf
Branch: refs/heads/1.4.5-SNAPSHOT
Commit: 19e24abffb7a919ea406ab5c2b08ef0e3b385b74
Parents: 3705acd
Author: Josh Elser <el...@apache.org>
Authored: Thu Oct 17 18:54:40 2013 -0400
Committer: Josh Elser <el...@apache.org>
Committed: Thu Oct 17 18:54:40 2013 -0400
----------------------------------------------------------------------
.../apache/accumulo/minicluster/MiniAccumuloClusterGCTest.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/accumulo/blob/19e24abf/src/minicluster/src/test/java/org/apache/accumulo/minicluster/MiniAccumuloClusterGCTest.java
----------------------------------------------------------------------
diff --git a/src/minicluster/src/test/java/org/apache/accumulo/minicluster/MiniAccumuloClusterGCTest.java b/src/minicluster/src/test/java/org/apache/accumulo/minicluster/MiniAccumuloClusterGCTest.java
index a432f50..b73523f 100644
--- a/src/minicluster/src/test/java/org/apache/accumulo/minicluster/MiniAccumuloClusterGCTest.java
+++ b/src/minicluster/src/test/java/org/apache/accumulo/minicluster/MiniAccumuloClusterGCTest.java
@@ -24,6 +24,7 @@ import org.apache.accumulo.core.client.Connector;
import org.apache.accumulo.core.client.ZooKeeperInstance;
import org.apache.accumulo.core.conf.Property;
import org.apache.accumulo.core.data.Mutation;
+import org.apache.accumulo.server.util.PortUtils;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.filefilter.SuffixFileFilter;
import org.apache.commons.io.filefilter.TrueFileFilter;
@@ -58,8 +59,10 @@ public class MiniAccumuloClusterGCTest {
// Turn on the garbage collector
macConfig.runGC(true);
+ String gcPort = Integer.toString(PortUtils.getRandomFreePort());
+
// And tweak the settings to make it run often
- Map<String,String> config = ImmutableMap.of(Property.GC_CYCLE_DELAY.getKey(), "1s", Property.GC_CYCLE_START.getKey(), "0s");
+ Map<String,String> config = ImmutableMap.of(Property.GC_CYCLE_DELAY.getKey(), "1s", Property.GC_CYCLE_START.getKey(), "0s", Property.GC_PORT.getKey(), gcPort);
macConfig.setSiteConfig(config);
accumulo = new MiniAccumuloCluster(macConfig);