[midPoint-git] [Evolveum/midpoint] d09569: Avoid extra logging on system configuration change

mederly noreply at github.com
Thu Mar 24 09:50:03 CET 2022


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: d095693a601f7d9de66f629d5ee1049655759d6f
      https://github.com/Evolveum/midpoint/commit/d095693a601f7d9de66f629d5ee1049655759d6f
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2022-03-24 (Thu, 24 Mar 2022)

  Changed paths:
    M infra/common/src/main/java/com/evolveum/midpoint/common/LoggingConfigurationManager.java
    M infra/common/src/main/java/com/evolveum/midpoint/common/ProfilingConfigurationManager.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/cache/CacheConfigurationManager.java
    M repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/SqaleRepositoryService.java
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/SqlRepositoryServiceImpl.java

  Log Message:
  -----------
  Avoid extra logging on system configuration change

New logging configuration, caching configuration, and full-text
search configurations are applied only if there was a real change
in the respective data.

This eliminates useless log messages and (in some cases) useless work,
because e.g. logging config update application is not free.

Unrelated changes:
- Fixed op. result handling in LoggingConfigurationManager.
- Fixed modifying immutable data in ProfilingConfigurationManager.
- Make methods that update the configuration synchronized.

This resolves MID-4638.




More information about the midPoint-svn mailing list