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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0, 1.1.0
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              abellina Alessandro Bellina
              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