You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2025/12/21 00:28:00 UTC

[jira] [Updated] (YARN-9680) Code cleanup in ResourcePluginManager init methods

     [ https://issues.apache.org/jira/browse/YARN-9680?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ASF GitHub Bot updated YARN-9680:
---------------------------------
    Labels: pull-request-available  (was: )

> Code cleanup in ResourcePluginManager init methods
> --------------------------------------------------
>
>                 Key: YARN-9680
>                 URL: https://issues.apache.org/jira/browse/YARN-9680
>             Project: Hadoop YARN
>          Issue Type: Improvement
>            Reporter: Szilard Nemeth
>            Priority: Major
>              Labels: pull-request-available
>
> We have 2 initializer methods in this class: 
> 1. org.apache.hadoop.yarn.server.nodemanager.containermanager.resourceplugin.ResourcePluginManager#initialize
> 2. org.apache.hadoop.yarn.server.nodemanager.containermanager.resourceplugin.ResourcePluginManager#initializePluggableDevicePlugins
> Both are overly complex, contains nested conditions / loops.
> A simple refactor could be performed (along with tests) on these methods, for example, by splitting them into smaller methods, as a start.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org