We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1935b37 commit 93b9a88Copy full SHA for 93b9a88
1 file changed
hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestMultiParallel.java
@@ -181,6 +181,9 @@ private static byte[][] makeKeys() {
181
@Test
182
public void testActiveThreadsCount() throws Exception {
183
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);
187
try (Connection connection = ConnectionFactory.createConnection(UTIL.getConfiguration())) {
188
ThreadPoolExecutor executor = HTable.getDefaultExecutor(UTIL.getConfiguration());
189
try {
0 commit comments