You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/05/04 21:03:00 UTC

[jira] [Commented] (SAMZA-1699) NPE in ClusterResourceManager

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

ASF GitHub Bot commented on SAMZA-1699:
---------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/samza/pull/504


> NPE in ClusterResourceManager
> -----------------------------
>
>                 Key: SAMZA-1699
>                 URL: https://issues.apache.org/jira/browse/SAMZA-1699
>             Project: Samza
>          Issue Type: Bug
>            Reporter: Jagadish
>            Priority: Major
>
> When the ClusterResourcedManager receives a notification that a container is started, it moves the container from the "pending queue" to its "running queue".
> In the meanwhile, it's possible for another thread to remove the mapping for the key. Here's an example:
> NMCallbackThread-1:pendingYarnContainers.remove(key);
> NMCallbackThread-2:
> for (String key : pendingYarnContainers.keySet()) {
>   yarnContainer = pendingYarnContainers.get(key); <-- could be null depending on whether the removal happened before it.
> }



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