You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by "mgao0 (via GitHub)" <gi...@apache.org> on 2023/02/17 18:36:29 UTC

[GitHub] [helix] mgao0 opened a new issue, #2379: Simplify logic in HelixTaskExecutor to allow easier plug-in of customized threadpool APIs

mgao0 opened a new issue, #2379:
URL: https://github.com/apache/helix/issues/2379

   **Is your feature request related to a problem? Please describe.**
   Current there are two APIs where Helix allows users to provide threadpool for executing certain types of state transition message, which is `public ExecutorService getExecutorService(String resourceName);` and `public ExecutorService getExecutorService(String resourceName, String fromState, String toState);`. Each of these two APIs is implemented internally by leveraging a threadpoolkey (example: STATE_TRANSITION.resourceName, or STATE_TRANSITIOIN.resourceName.fromState.toState), so that we categorize the messages appropriately. In participant side logic (HelixTaskExecutor.class), we used one set for each API to determine if a threadpoolkey has been assigned a threadpool before. And there are if-else clauses to determine which threadpool to be used from the results of calling these two APIs. It is not very scalable, meaning a lot of code needs to be implemented in order to add another parameter to finer grind categorize messages and assign customized threadpool. We need a more gen
 eric solution.
   
   **Describe the solution you'd like**
   For generating threadpoolkey, and determine which threadpool to be used, we should make it so that each time we just need to do minimal code change, and no need to duplicate similar logic.
   
   **Additional context**
   Add any other context or screenshots about the feature request here.
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org.apache.org

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


[GitHub] [helix] xyuanlu closed issue #2379: Simplify logic in HelixTaskExecutor to allow easier plug-in of customized threadpool APIs

Posted by "xyuanlu (via GitHub)" <gi...@apache.org>.
xyuanlu closed issue #2379: Simplify logic in HelixTaskExecutor to allow easier plug-in of customized threadpool APIs
URL: https://github.com/apache/helix/issues/2379


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org

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