Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-981

Stopping embedded OpenDJ does not stop all owned threads

    XMLWordPrintable

    Details

    • Bug
    • Status: Done
    • Major
    • Resolution: Duplicate
    • 2.4.6, 2.5.0-Xpress1
    • Not applicable
    • core server
    • None

      Description

      Bug reported on the OpenDJ mailing list:

      2013/6/8 Peter Varga <pvarga@opentext.com>

      Hi

      We are using OpenDJ embedded in servlet.
      We use org.opends.server.util.EmbeddedUtils.startServer() to start the server, and org.opends.server.util.EmbeddedUtils.stopServer() to stop it.

      After stopping it, the thread “Monitor Provider State Updater” is still running. Looking at the OpenDJ source code, it is evidently an OpenDJ thread – see MonitorProvider.java

      It looks like the MonitorProvider class should register itself as a ServerShutdownListener.
      Then in the implementation of processServerShutdown(), it should call SCHEDULER.shutdownNow().

        Attachments

          Issue Links

            Activity

              People

              matthew Matthew Swift
              JnRouvignac Jean-Noël Rouvignac
              Matthew Swift Matthew Swift
              Christophe Sovant Christophe Sovant
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: