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 5be05e90d4
commit 73c225a071
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 {
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][];