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-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-dev-h...@hadoop.apache.org