You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@storm.apache.org by "Robert Joseph Evans (JIRA)" <ji...@apache.org> on 2016/09/29 15:31:21 UTC

[jira] [Resolved] (STORM-2126) Fix NPE due to race condition in nimbus.clj when attempting to get resources from SupervisorDetail

     [ https://issues.apache.org/jira/browse/STORM-2126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Joseph Evans resolved STORM-2126.
----------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.1.0
                   2.0.0

Thanks [~abellina],

I merged this into master and 1.x-branch, but the cherry-pick was not clean going to 1.0.x-branch so I didn't pull it in there.  If you feel up to making a similar change for that branch it would be awesome. 

> Fix NPE due to race condition in nimbus.clj when attempting to get resources from SupervisorDetail
> --------------------------------------------------------------------------------------------------
>
>                 Key: STORM-2126
>                 URL: https://issues.apache.org/jira/browse/STORM-2126
>             Project: Apache Storm
>          Issue Type: Bug
>            Reporter: Alessandro Bellina
>            Assignee: Alessandro Bellina
>            Priority: Minor
>             Fix For: 2.0.0, 1.1.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> Work done by [~dagit] at Yahoo.
> In nimbus.clj there is some code to work around a race condition in compute-new-scheduler-assignments and read-all-supervisor-details. However, the race can be avoiding, hence removing the need for the workaround. 
> This was exposed because RAS code is expecting the SchedulerDetail object to contain a resources map, but when the race happens these objects have that map set to null.



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