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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]