Skip to content

Commit 93b9a88

Browse files
saintstackGuanghao Zhang
authored andcommitted
HBASE-23956 Use less resources running tests (apache#1266) Addendum: TestMultiParallel thread counts were off after parent change.
1 parent 1935b37 commit 93b9a88

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestMultiParallel.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ private static byte[][] makeKeys() {
181181
@Test
182182
public void testActiveThreadsCount() throws Exception {
183183
UTIL.getConfiguration().setLong("hbase.htable.threads.coresize", slaves + 1);
184+
// Make sure max is at least as big as coresize; can be smaller in test context where
185+
// we tune down thread sizes -- max could be < slaves + 1.
186+
UTIL.getConfiguration().setLong("hbase.htable.threads.max", slaves + 1);
184187
try (Connection connection = ConnectionFactory.createConnection(UTIL.getConfiguration())) {
185188
ThreadPoolExecutor executor = HTable.getDefaultExecutor(UTIL.getConfiguration());
186189
try {

0 commit comments

Comments
 (0)