HBASE-16192 Fix the potential problems in TestAcidGuarantees (Colin Ma)

This commit is contained in:
Michael Stack 2017-06-30 03:16:46 -07:00
parent 290fb8965d
commit 926781540c
1 changed files with 2 additions and 0 deletions

View File

@ -367,6 +367,8 @@ public class TestAcidGuarantees implements Tool {
final boolean useMob) throws Exception { final boolean useMob) throws Exception {
createTableIfMissing(useMob); 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()); TestContext ctx = new TestContext(util.getConfiguration());
byte rows[][] = new byte[numUniqueRows][]; byte rows[][] = new byte[numUniqueRows][];