Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-9502

Backport OPENIDM-5150: JSON configuration files always reloaded at startup irrespective of modifications

    Details

      Description

      OpenIDM currently reloads all of the JSON configuration files at startup regardless of whether the configuration has changed. Depending on timing and delays starting various services, the reloading of unmodified configuration files can result in the needless deactivation and re-activation of OpenIDM services.

      For example, with an OOTB installation of OpenIDM 4.0.0 w/MySQL Repository the problem can be reproduced as follows:

      1. Install OpenIDM 4.0.0
      2. Configure MySQL as the JDBC Repository
      3. Start OpenIDM
      4. Shutdown OpenIDM
      5. Re-start OpenIDM

      Review the OpenIDM log file from #5 and search for the following lines:

      ```
      Feb 08, 2016 11:52:27 AM org.forgerock.openidm.datasource.jdbc.impl.JDBCDataSourceService activate
      Feb 08, 2016 11:52:27 AM org.forgerock.openidm.datasource.jdbc.impl.JDBCDataSourceService modified
      ...
      ...
      Feb 08, 2016 11:52:27 AM org.forgerock.openidm.datasource.jdbc.impl.JDBCDataSourceService deactivate
      INFO: Repository stopped.
      Feb 08, 2016 11:52:27 AM org.forgerock.openidm.datasource.jdbc.impl.JDBCDataSourceService activate
      ```

      The impact of the above appears to be dependent upon the environment in which OpenIDM is running, the number of connectors in use, timing of services being started etc... in the most severe situations we see multiple services being deactivate/re-activated which often leads to failures and or services which are not reloaded correctly.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mark.offutt Mark Offutt [X] (Inactive)
                Reporter:
                cgdrake Chris Drake
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: