You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Kuhu Shukla (JIRA)" <ji...@apache.org> on 2016/10/20 17:18:58 UTC
[jira] [Resolved] (YARN-5758) NodeStatusUpdaterImpl serviceInit can
NPE if ResourcePlugin is null
[ https://issues.apache.org/jira/browse/YARN-5758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kuhu Shukla resolved YARN-5758.
-------------------------------
Resolution: Invalid
> NodeStatusUpdaterImpl serviceInit can NPE if ResourcePlugin is null
> -------------------------------------------------------------------
>
> Key: YARN-5758
> URL: https://issues.apache.org/jira/browse/YARN-5758
> Project: Hadoop YARN
> Issue Type: Bug
> Environment: OS X Yosemite 10.10.3
> Reporter: Kuhu Shukla
> Assignee: Kuhu Shukla
>
> Running {{TestNodeStatusUpdaterForLabels#testInvalidNodeLabelsFromProvider}},
> {{testNodeStatusUpdaterForNodeLabels}}
> on MAC causes NullPointerException as the ResourcePlugin returns null,
> We should protect against that in NodeStatusUpdaterImpl#serviceInit:
> {code}
> // Get actual node physical resources
> ResourceCalculatorPlugin rcp =
> ResourceCalculatorPlugin.getResourceCalculatorPlugin(null, conf);
> int physicalMemoryMb = (int) rcp.getPhysicalMemorySize() / (1024 * 1024);
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org