diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/TestAcidGuarantees.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/TestAcidGuarantees.java index cc7d0a3648a..b97f9c15624 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/TestAcidGuarantees.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/TestAcidGuarantees.java @@ -367,6 +367,8 @@ public class TestAcidGuarantees implements Tool { final boolean useMob) throws Exception { createTableIfMissing(useMob); + // set the max threads to avoid java.lang.OutOfMemoryError: unable to create new native thread + util.getConfiguration().setInt("hbase.hconnection.threads.max", 40); TestContext ctx = new TestContext(util.getConfiguration()); byte rows[][] = new byte[numUniqueRows][];