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

Miklos Szegedi commented on YARN-5726:
--------------------------------------

All right, I will use YARN-5725 to track both issues. They belong to different 
features. That is why I separated YARN-5725 and YARN-5726.
The source of the null pointer is a mock object that only returns an empty 
container map. This is just a test issue AFAIK.
{code}
    context = Mockito.mock(Context.class);
    Mockito.doReturn(new ConcurrentSkipListMap<ContainerId, Container>())
        .when(context).getContainers();
{code}

> Test exception in 
> TestContainersMonitorResourceChange.testContainersResourceChange when trying 
> to get NMTimelinePublisher
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: YARN-5726
>                 URL: https://issues.apache.org/jira/browse/YARN-5726
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Miklos Szegedi
>            Assignee: Miklos Szegedi
>            Priority: Trivial
>         Attachments: YARN-5726.000.patch
>
>
> 2016-10-12 14:38:39,970 WARN  [Container Monitor] 
> monitor.ContainersMonitorImpl (ContainersMonitorImpl.java:run(594)) - 
> Uncaught exception in ContainersMonitorImpl while monitoring resource of 
> container_123456_0001_01_000001
> java.lang.NullPointerException
>       at 
> org.apache.hadoop.yarn.server.nodemanager.containermanager.monitor.ContainersMonitorImpl$MonitoringThread.run(ContainersMonitorImpl.java:587)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to