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

Race condition in backtype.storm.utils.Time

    XMLWordPrintableJSON

Details

    Description

      Some of my test runs were occasionally failing with a NullPointerException on backtype.storm.utils.Time.java:64.

      After a bit of investigation, it seems there's a race condition here; if we disable simulating mode while a thread is currently sleeping, then when it wakes up it won't re-check if it's still in "simulating" mode, it'll try to remove the sleep time, and get the NPE.

      The attached patch is a fairly straightforward fix.

      Attachments

        1. patch_commit_ae6a0eaf21e1.patch
          2 kB
          Adrian Petrescu

        Activity

          People

            apetresc Adrian Petrescu
            apetresc Adrian Petrescu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: