Uploaded image for project: 'Mule'
  1. Mule
  2. MULE-16516

Race condition in ThreadGroup destroying for customScheduler threadGroup

    Details

    • Severity:
      S2
    • Bug Boosted:
      No
    • Defect Source:
      Production Defect
    • Story Points:
      0
    • Sprint:
      Mule 4 - Ziro 02/13
    • Severity Label:
      S2 (Regular)
    • Affects:
      nothing

      Description

      When a custom scheduler is used, and code running in that scheduler creates a new thread pool, that newly created pool inherits the ThreadGroup of the custom Scheduler.

      When the custom scheduler is stopped, it will attempt to stop all work in its threadGroup, which includes all threads that were created within it and inherited its thread group. The thing is, between the code where the threads of a threadGroup are obtained and where that information is used, new threads may appear or threads may finish, generating an inconsistency.

        Attachments

          Activity

            People

            • Assignee:
              rodrigo.merino Rodrigo Merino
              Reporter:
              rodrigo.merino Rodrigo Merino
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: