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

Backport OPENDJ-5979: Server does not validate sum of memory used by JE backend caches after upgrade

    Details

    • Type: Bug
    • Status: Done
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 6.5.1, 6.5.0
    • Fix Version/s: 6.5.1
    • Component/s: config, core apis
    • Labels:
    • Story Points:
      1

      Description

      Found with latest 7.0.0-SNAPSHOT rev. 1db9934fae1. 

      This issue is same as OPENDJ-5584 but it only happens when upgrading from older version. I tried with 5.0.0 release.

      To reproduce the issue run following commands:

      export OPENDJ_VERSION='["4.0.0", "7.0.0-SNAPSHOT"]'
      python3 configure.py -s
      python3 run-pybot.py -v -s Backends_Group.GlobalConfigurationSettings dj

      The same test works fine when OPENDJ_VERSION is 6.5.1-SNAPSHOT or 7.0.0-SNAPSHOT. From first look it looks like a missing upgrade task.


      Steps to reproduce:

      • Configure 5.0.0
      • Upgrade to 7.0.0
      • Start the instance
      • Set je-backend-shared-cache-enabled to False
      • Stop the instance
      • Start the instance

      Last point should return rc==1 and start-ds output should looks like an example below, but the instance starts with rc==0 and the output doesn't contain message about an error.

      [01/Feb/2019:02:57:29 +0000] category=CORE severity=NOTICE msgID=134 msg=ForgeRock Directory Services 7.0.0-SNAPSHOT (build 20190201004143, revision number 1db9934fae1b36709d9b2fe2ca61e94e5d7b3f27) starting up
      [01/Feb/2019:02:57:29 +0000] category=JVM severity=NOTICE msgID=21 msg=Installation Directory: /root/workspace/OpenDJ-7.0.x/tests_daily/Configs/results/20190201-023500/backends_group/GlobalConfigurationSettings/ProfileDJ/opendj 
      [01/Feb/2019:02:57:29 +0000] category=JVM severity=NOTICE msgID=23 msg=Instance Directory: /root/workspace/OpenDJ-7.0.x/tests_daily/Configs/results/20190201-023500/backends_group/GlobalConfigurationSettings/ProfileDJ/opendj 
      [01/Feb/2019:02:57:29 +0000] category=JVM severity=NOTICE msgID=17 msg=JVM Information: 1.8.0_181-b13 by Oracle Corporation, 64-bit architecture, 28631367680 bytes heap size 
      [01/Feb/2019:02:57:29 +0000] category=JVM severity=NOTICE msgID=18 msg=JVM Host: localhost, running Linux 3.10.0-862.3.2.el7.x86_64 amd64, 337829969920 bytes physical memory size, number of processors available 48 
      [01/Feb/2019:02:57:29 +0000] category=JVM severity=NOTICE msgID=19 msg=JVM Arguments: "-XX:+UnlockExperimentalVMOptions", "-XX:+UseCGroupMemoryLimitForHeap", "-Dorg.opends.server.scriptName=start-ds" 
      [01/Feb/2019:02:57:30 +0000] category=BACKEND severity=NOTICE msgID=513 msg=The database backend amCts containing 5 entries has started 
      [01/Feb/2019:02:57:30 +0000] category=BACKEND severity=NOTICE msgID=513 msg=The database backend idmRepo containing 38 entries has started 
      [01/Feb/2019:02:57:30 +0000] category=CONFIG severity=ERROR msgID=116 msg=An error occurred while trying to initialize a backend loaded from class org.opends.server.backends.jeb.JEBackend with the information in configuration entry ds-cfg-backend-id=dsEvaluation,cn=Backends,cn=config: Configuration attribute ds-cfg-db-cache-percent has a value of 50% but the JVM has only 0% available. This backend will be disabled 
      [01/Feb/2019:02:57:30 +0000] category=CORE severity=NOTICE msgID=139 msg=The Directory Server has sent an alert notification generated by class org.opends.server.core.DirectoryServer (alert type org.opends.server.DirectoryServerShutdown, alert ID org.opends.messages.core-141): The Directory Server has started the shutdown process. The shutdown was initiated by an instance of class org.opends.server.core.DirectoryServer and the reason provided for the shutdown was An error occurred while attempting to bootstrap the Directory Server: An error occurred while trying to initialize a backend loaded from class org.opends.server.backends.jeb.JEBackend with the information in configuration entry ds-cfg-backend-id=dsEvaluation,cn=Backends,cn=config: Configuration attribute ds-cfg-db-cache-percent has a value of 50% but the JVM has only 0% available. This backend will be disabled\ [01/Feb/2019:02:57:30 +0000] category=BACKEND severity=NOTICE msgID=370 msg=The backend idmRepo is now taken offline 
      [01/Feb/2019:02:57:30 +0000] category=BACKEND severity=NOTICE msgID=370 msg=The backend amCts is now taken offline 
      [01/Feb/2019:02:57:30 +0000] category=CORE severity=NOTICE msgID=203 msg=The Directory Server is now stopped

      Without upgrade and direct configuration of 7.0.0 at the beginning the return rc of last step is equal to 1 and the output is same as above example.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cjr Chris Ridd
                Reporter:
                cjr Chris Ridd
                QA Assignee:
                Ondrej Fuchsik
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: