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

Race condition between Topology Kill and Worker Timeout can crash supervisor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Abandoned
    • None
    • None
    • storm-core
    • None

    Description

      Recently during testing on a single node cluster we saw a supervisor crash when a topology was killed. The supervisor came back up and recovered, so it was not that big of a deal, but when we dug into it, it appears that there is a race.
      https://github.com/nathanmarz/storm/issues/656

      When a topology is killed the local assignments are reset, and then stormconf.ser is deleted right away. But at the same time sync-process may already be running with old state indicating that a worker timed out and needs to be relaunched. launch-worker then tries to read in the topology conf which was deleted and crashes.

      The following is a sanitized version of the supervisor log that shows this happening.
      https://gist.github.com/revans2/6282830

      Attachments

        Activity

          People

            Unassigned Unassigned
            xumingming James Xu
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: