Skip to content

Commit 8633b26

Browse files
committed
Revert "HBASE-14433 Set down the client executor core thread count from 256 to number of processors"
This reverts commit d2e3381.
1 parent d2e3381 commit 8633b26

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,7 @@ private ExecutorService getBatchPool() {
370370
synchronized (this) {
371371
if (batchPool == null) {
372372
this.batchPool = getThreadPool(conf.getInt("hbase.hconnection.threads.max", 256),
373-
conf.getInt("hbase.hconnection.threads.core",
374-
Runtime.getRuntime().availableProcessors()),
375-
"-shared-", null);
373+
conf.getInt("hbase.hconnection.threads.core", 256), "-shared-", null);
376374
this.cleanupPool = true;
377375
}
378376
}
@@ -387,7 +385,7 @@ private ExecutorService getThreadPool(int maxThreads, int coreThreads, String na
387385
maxThreads = Runtime.getRuntime().availableProcessors() * 8;
388386
}
389387
if (coreThreads == 0) {
390-
coreThreads = Runtime.getRuntime().availableProcessors();
388+
coreThreads = Runtime.getRuntime().availableProcessors() * 8;
391389
}
392390
long keepAliveTime = conf.getLong("hbase.hconnection.threads.keepalivetime", 60);
393391
BlockingQueue<Runnable> workQueue = passedWorkQueue;

hbase-client/src/test/resources/hbase-site.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,4 @@
2525
<name>hbase.defaults.for.version.skip</name>
2626
<value>true</value>
2727
</property>
28-
<property>
29-
<name>hbase.hconnection.meta.lookup.threads.core</name>
30-
<value>4</value>
31-
</property>
32-
<property>
33-
<name>hbase.hconnection.threads.keepalivetime</name>
34-
<value>3</value>
35-
</property>
3628
</configuration>

hbase-server/src/test/resources/hbase-site.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,4 @@
162162
Enable replay sanity checks on procedure tests.
163163
</description>
164164
</property>
165-
<property>
166-
<name>hbase.hconnection.meta.lookup.threads.core</name>
167-
<value>4</value>
168-
</property>
169-
<property>
170-
<name>hbase.hconnection.threads.keepalivetime</name>
171-
<value>3</value>
172-
</property>
173165
</configuration>

0 commit comments

Comments
 (0)