hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kuhu Shukla (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-5758) NodeStatusUpdaterImpl serviceInit can NPE if ResourcePlugin is null
Date Thu, 20 Oct 2016 15:52:58 GMT
Kuhu Shukla created YARN-5758:
---------------------------------

             Summary: 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


Mime
View raw message