Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-16324

Tests: JettyFeature shutdown deadlock

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 6.0-HF04, 7.1
    • Component/s: Tests

      Description

      The following deadlock can occur when using the JettyFeature:

      • jetty server is lauched
      • test thread does a jetty request then returns quickly
      • jetty thread takes some time to do its work
      • test thread shuts down the runtime, while synchonizing on the ComponentManagerImpl instance in:
        • ComponentManagerImpl.shutdown
        • ComponentManagerImpl.unregister for each component
      • test thread gets to JettyComponent.deactivate, with above monitor held
        • this waits for all jetty threads to stop while doing Server.stop()
      • jetty thread, still working, calls Framework.getService, which calls ComponentManagerImpl.getComponentProvidingService which does a synchronize on the ComponentManagerImpl instance

      -> deadlock

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.