You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2020/03/12 05:09:09 UTC
[hbase] branch branch-2 updated: HBASE-23956 Use less resources
running tests (#1266) Addendum: TestMultiParallel thread counts were off
after parent change.
This is an automated email from the ASF dual-hosted git repository.
stack pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new 6a30b4e HBASE-23956 Use less resources running tests (#1266) Addendum: TestMultiParallel thread counts were off after parent change.
6a30b4e is described below
commit 6a30b4eab4a59a9ef079e322709917b7caf01813
Author: stack <st...@apache.org>
AuthorDate: Wed Mar 11 22:08:31 2020 -0700
HBASE-23956 Use less resources running tests (#1266)
Addendum: TestMultiParallel thread counts were off after
parent change.
---
.../test/java/org/apache/hadoop/hbase/client/TestMultiParallel.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestMultiParallel.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestMultiParallel.java
index 7d36e99..84c90de 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestMultiParallel.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestMultiParallel.java
@@ -181,6 +181,9 @@ public class TestMultiParallel {
@Test
public void testActiveThreadsCount() throws Exception {
UTIL.getConfiguration().setLong("hbase.htable.threads.coresize", slaves + 1);
+ // Make sure max is at least as big as coresize; can be smaller in test context where
+ // we tune down thread sizes -- max could be < slaves + 1.
+ UTIL.getConfiguration().setLong("hbase.htable.threads.max", slaves + 1);
try (Connection connection = ConnectionFactory.createConnection(UTIL.getConfiguration())) {
ThreadPoolExecutor executor = HTable.getDefaultExecutor(UTIL.getConfiguration());
try {