Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-2081

ApacheDS taking up to 30 seconds stop stop politely

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.0-M20
    • None
    • ldap
    • None

    Description

      To reproduce:

      1. svn update to the -M21-SNAPSHOT
      2. Unpack an archive apacheds
      3. Tune your $ADS_HOME/insances/default/conf/log4j.properties as follows:
        1. log4j.logger.org.apache.directory.server.core.DefaultDirectoryService=ALL
          log4j.logger.org.apache.directory.server.config=INFO
          log4j.logger.org.apache.directory.server.UberjarMain=ALL
          
      4. From $ADS_HOME
        1. cd instances/default/;
          rm -rf .dirservice.lock partitions/* cache/* log/* run/* run/.s* syncrepl-data/*;
          cd ../..;
          bin/apacheds.sh start
          
        2. In a separate window
          1. tail -f $ADS_HOME/instances/default/log/apacheds.out
        3. Import the attached .ldif files (i dont think the specifics of the ldif files matters)
        4. apacheds.sh stop

      This is not 100% of the time, but if done fairly close together, you should see the log look something like this:

      [16:22:23] INFO [org.apache.directory.server.UberjarMain] - Stopping the service.
      [16:22:23] DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - +++ DirectoryService Shutdown required
      [16:22:23] DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - --- Syncing the nexus
      [16:22:23] DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - --- Flushing everything before quitting
      [16:22:23] DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - --- Syncing the changeLog
      [16:22:23] DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - --- Destroying the nexus
      [16:22:23] DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - --- Deleting the cache service
      [16:22:23] DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - ---Deleting the DnCache
      [16:22:23] DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - +++ DirectoryService stopped
      [16:22:23] INFO [org.apache.directory.server.UberjarMain] - Service stopped successfully.
      [16:22:43] DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - +++ DirectoryService Shutdown required
      

      And you can see that the last log message was 10's of seconds after the initial shutdown request.

      Attachments

        1. portalperson_schema.ldif
          3 kB
          lucas theisen
        2. forgotpassword_schema.ldif
          6 kB
          lucas theisen

        Activity

          People

            akiran Kiran Ayyagari
            ltheisen@mitre.org lucas theisen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: