You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by GitBox <gi...@apache.org> on 2020/05/13 21:57:24 UTC

[GitHub] [helix] narendly commented on a change in pull request #1009: Configurable thread pool size for AssignableInstance

narendly commented on a change in pull request #1009:
URL: https://github.com/apache/helix/pull/1009#discussion_r424753808



##########
File path: helix-core/src/main/java/org/apache/helix/task/assigner/AssignableInstance.java
##########
@@ -113,7 +113,7 @@ private void refreshTotalCapacity() {
     if (resourceCapacity == null) {
       resourceCapacity = new HashMap<>();
       resourceCapacity.put(LiveInstance.InstanceResourceType.TASK_EXEC_THREAD.name(),
-          Integer.toString(TaskConstants.DEFAULT_TASK_THREAD_POOL_SIZE));
+          Integer.toString(_liveInstance.getCurrentTaskThreadPoolSize()));

Review comment:
       Do we do a null check on _liveInstance?

##########
File path: helix-core/src/test/java/org/apache/helix/task/assigner/TestAssignableInstance.java
##########
@@ -55,18 +55,20 @@ public void testInvalidInitialization() {
 
   @Test
   public void testInitializationWithQuotaUnset() {
+    int testCurrentTaskThreadPoolSize = 100;

Review comment:
       Nit: rename to "expectedCurrentTaskThreadPoolSize"?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org