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 "Szilard Nemeth (JIRA)" <ji...@apache.org> on 2019/02/28 06:09:00 UTC

[jira] [Comment Edited] (YARN-9121) Replace GpuDiscoverer.getInstance() to a readable object for easy access control

    [ https://issues.apache.org/jira/browse/YARN-9121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16779152#comment-16779152 ] 

Szilard Nemeth edited comment on YARN-9121 at 2/28/19 6:08 AM:
---------------------------------------------------------------

Hi [~sunilg]! 
This jira seems to be ready now for all branches (3.2 / 3.1)


was (Author: snemeth):
Hi [~sunilg]! 
This jira seems to be ready now

> Replace GpuDiscoverer.getInstance() to a readable object for easy access control
> --------------------------------------------------------------------------------
>
>                 Key: YARN-9121
>                 URL: https://issues.apache.org/jira/browse/YARN-9121
>             Project: Hadoop YARN
>          Issue Type: Improvement
>            Reporter: Szilard Nemeth
>            Assignee: Szilard Nemeth
>            Priority: Major
>             Fix For: 3.3.0, 3.2.1, 3.1.3
>
>         Attachments: YARN-9121-branch-3.1.001.patch, YARN-9121.001.patch, YARN-9121.002.patch, YARN-9121.003.patch, YARN-9121.branch-3.1.003.patch, YARN-9121.branch-3.1.004.patch, YARN-9121.branch-3.2.001.patch, YARN-9121.branch-3.2.003.patch
>
>
> The clients of GpuDiscoverer are very hard to test as they call GpuDiscoverer.getInstance() internally.
> For example, writing tests for org.apache.hadoop.yarn.server.nodemanager.containermanager.resourceplugin.gpu.GpuResourcePlugin#getNMResourceInfo is quite hard as the GpuDeviceInformation returned by GpuDiscoverer is not interchangeable as GpuDiscoverer is not mockable since we cannot inject it in tests. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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