Uploaded image for project: 'Apache Storm'
  1. Apache Storm
  2. STORM-2126

Fix NPE due to race condition in nimbus.clj when attempting to get resources from SupervisorDetail

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0, 1.1.0
    • Component/s: None
    • Labels:
      None

      Description

      Work done by Derek 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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                abellina Alessandro Bellina
                Reporter:
                abellina Alessandro Bellina
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m