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

All admin tools print slf4j info messages in offline mode

    Details

    • Type: Bug
    • Status: Done
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.0.0
    • Component/s: core server
    • Labels:
    • Environment:
      OpenDJ 4.0.0 rev 1b042cdf009291aff8027f4d0ca04fdc9e1c3991

      Description

      Doing an --offline import I can see slf4j info messages in stdout:

      ./bin/import-ldif -n userRoot -F -l output.ldif --offline
      Mar 16, 2017 7:58:25 AM org.forgerock.i18n.slf4j.LocalizedLogger info
      INFO: Installation Directory:  /home/ondrej/opendj
      Mar 16, 2017 7:58:25 AM org.forgerock.i18n.slf4j.LocalizedLogger info
      INFO: Instance Directory:      /home/ondrej/opendj
      Mar 16, 2017 7:58:25 AM org.forgerock.i18n.slf4j.LocalizedLogger info
      INFO: JVM Information: 1.7.0_121-b00 by Oracle Corporation, 64-bit architecture, 675086336 bytes heap size
      Mar 16, 2017 7:58:25 AM org.forgerock.i18n.slf4j.LocalizedLogger info
      INFO: JVM Host: ondrej.debian.cz, running Linux 3.16.0-4-amd64 amd64, 2108018688 bytes physical memory size, number of processors available 1
      Mar 16, 2017 7:58:25 AM org.forgerock.i18n.slf4j.LocalizedLogger info
      INFO: JVM Arguments: "-Dorg.opends.server.scriptName=import-ldif"
      Mar 16, 2017 7:58:25 AM org.forgerock.i18n.slf4j.LocalizedLogger debug
      FINE: JE backend 'userRoot' does not specify the number of lock tables: defaulting to 53
      Mar 16, 2017 7:58:25 AM org.forgerock.i18n.slf4j.LocalizedLogger debug
      FINE: JE backend 'userRoot' does not specify the number of cleaner threads: defaulting to 8 threads
      Mar 16, 2017 7:58:26 AM org.forgerock.i18n.slf4j.LocalizedLogger info
      INFO: OpenDJ Server 4.0.0-SNAPSHOT starting import (build 20170314004541, R1b042cdf009291aff8027f4d0ca04fdc9e1c3991)
      Mar 16, 2017 7:58:26 AM org.forgerock.i18n.slf4j.LocalizedLogger info
      INFO: The amount of free memory available to the import task is 259966009 bytes. The number of phase one buffers required is 16 buffers
      Mar 16, 2017 7:58:26 AM org.forgerock.i18n.slf4j.LocalizedLogger info
      INFO: Setting DB cache size to 33554432 bytes and phase one buffer size to 16247875 bytes
      Mar 16, 2017 7:58:26 AM org.forgerock.i18n.slf4j.LocalizedLogger info
      INFO: Import Thread Count: 2 threads
      Mar 16, 2017 7:58:32 AM org.forgerock.i18n.slf4j.LocalizedLogger info
      INFO: Index /dc=com,dc=example/dn2id phase two started processing 1 buffers in 1 batches
      Mar 16, 2017 7:58:35 AM org.forgerock.i18n.slf4j.LocalizedLogger info
      INFO: Index /dc=com,dc=example/objectClass.objectIdentifierMatch phase two started processing 1 buffers in 1 batches
      Mar 16, 2017 7:58:35 AM org.forgerock.i18n.slf4j.LocalizedLogger info
      INFO: Index /dc=com,dc=example/objectClass.objectIdentifierMatch phase two processing completed
      Mar 16, 2017 7:58:36 AM org.forgerock.i18n.slf4j.LocalizedLogger info
      INFO: Index /dc=com,dc=example/entryUUID.uuidMatch phase two started processing 1 buffers in 1 batches
      Mar 16, 2017 7:58:36 AM org.forgerock.i18n.slf4j.LocalizedLogger info
      INFO: Index /dc=com,dc=example/dn2id phase two processing completed
      Mar 16, 2017 7:58:36 AM org.forgerock.i18n.slf4j.LocalizedLogger info
      INFO: Index /dc=com,dc=example/id2childrencount phase two started processing 1 buffers in 1 batches
      Mar 16, 2017 7:58:36 AM org.forgerock.i18n.slf4j.LocalizedLogger info
      INFO: Index /dc=com,dc=example/id2childrencount phase two processing completed
      Mar 16, 2017 7:58:36 AM org.forgerock.i18n.slf4j.LocalizedLogger info
      INFO: Index /dc=com,dc=example/entryUUID.uuidMatch phase two processing completed
      Mar 16, 2017 7:58:38 AM org.forgerock.i18n.slf4j.LocalizedLogger info
      INFO: Total import time was 10 seconds. Phase one processing completed in 5 seconds, phase two processing completed in 4 seconds
      Mar 16, 2017 7:58:38 AM org.forgerock.i18n.slf4j.LocalizedLogger info
      INFO: Processed 10002 entries, imported 10002, skipped 0, rejected 0 and migrated 0 in 12 seconds (average rate 804.2/sec)
      Mar 16, 2017 7:58:38 AM org.forgerock.i18n.slf4j.LocalizedLogger info
      INFO: Import LDIF environment close took 0 seconds
      Mar 16, 2017 7:58:38 AM org.forgerock.i18n.slf4j.LocalizedLogger info
      INFO: Flushing data to disk
      

      Steps to reproduce:
      1. Setup dj:

      ./setup proxy-server --rootUserDn cn=myself --rootUserPassword password -h localhost --adminConnectorPort 4444 --ldapPort 1389 --enableStartTls --ldapsPort 1636 --httpsPort 8443 --staticPrimaryServer localhost:2389 --staticPrimaryServer localhost:3389 --proxyUserBindDn cn=proxy --proxyUserBindPassword password --baseDn dc=proxy --loadBalancingAlgorithm affinity
      

      2. Create backend:

      ./bin/dsconfig create-backend --bindDn cn=myself --bindPassword password --hostname localhost --port 4444 --trustAll --set base-dn:dc=example,dc=com --set enabled:true --type je --backend-name userRoot --no-prompt
      

      3. Make ldif

      ./bin/makeldif -o output.ldif  config/MakeLDIF/example.template
      

      4. stop dj

      ./bin/stop-ds 
      

      5. import ldif

      ./bin/import-ldif -n userRoot -F -l output.ldif --offline
      

      For me these slf4j info messages are unexpected.

        Attachments

          Activity

            People

            • Assignee:
              gaetan Gaetan Boismal [X] (Inactive)
              Reporter:
              ondrej.fuchsik Ondrej Fuchsik
              QA Assignee:
              Ondrej Fuchsik
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: