mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Chris Ridd
16.40.2015 be0e008bc135a329f301cb8e05527fe201ddc0ad
OPENDJ-2362 Use je.cleaner.minUtilization instead of je.cleaner.minFileUtilization
4 files modified
50 ■■■■ changed files
opendj-maven-plugin/src/main/resources/config/xml/org/forgerock/opendj/server/config/JEBackendConfiguration.xml 23 ●●●● patch | view | raw | blame | history
opendj-maven-plugin/src/main/resources/config/xml/org/forgerock/opendj/server/config/LocalDBBackendConfiguration.xml 23 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/backends/jeb/BackendImpl.java 2 ●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/backends/jeb/JEStorage.java 2 ●●● patch | view | raw | blame | history
opendj-maven-plugin/src/main/resources/config/xml/org/forgerock/opendj/server/config/JEBackendConfiguration.xml
@@ -198,14 +198,13 @@
  </adm:property>
  <adm:property name="db-cleaner-min-utilization" advanced="true">
    <adm:synopsis>
      Specifies the minimum percentage of "live" data that the database
      cleaner attempts to keep in database log files.
      Specifies the occupancy percentage for "live" data in this backend's
      database.
    </adm:synopsis>
    <adm:description>
      If the amount of live data in any database log file drops below
      this percentage, then the cleaner moves the remaining live
      data in that file to the end of the database and deletes the
      original file in order to keep the database relatively compact.
      When the amount of "live" data in the database drops below this value,
      cleaners will act to increase the occupancy percentage by compacting
      the database.
    </adm:description>
    <adm:default-behavior>
      <adm:defined>
@@ -223,15 +222,15 @@
  </adm:property>
  <adm:property name="db-run-cleaner" advanced="true">
    <adm:synopsis>
      Indicates whether the database cleaner threads should be
      enabled.
      Indicates whether the cleaner threads should be enabled to compact
      the database.
    </adm:synopsis>
    <adm:description>
      The cleaner threads are used to periodically compact the
      database by identifying database files with a low (that is, less than
      the amount specified by the db-cleaner-min-utilization property)
      percentage of live data, moving the remaining live data to the end
      of the log and deleting that file.
      database when it reaches a percentage of occupancy lower than the
      amount specified by the db-cleaner-min-utilization property. They identify
      database files with a low percentage of live data, and relocate their
      remaining live data to the end of the log.
    </adm:description>
    <adm:default-behavior>
      <adm:defined>
opendj-maven-plugin/src/main/resources/config/xml/org/forgerock/opendj/server/config/LocalDBBackendConfiguration.xml
@@ -464,14 +464,13 @@
  </adm:property>
  <adm:property name="db-cleaner-min-utilization" advanced="true">
    <adm:synopsis>
      Specifies the minimum percentage of "live" data that the database
      cleaner attempts to keep in database log files.
      Specifies the occupancy percentage for "live" data in this backend's
      database.
    </adm:synopsis>
    <adm:description>
      If the amount of live data in any database log file drops below
      this percentage, then the cleaner moves the remaining live
      data in that file to the end of the database and deletes the
      original file in order to keep the database relatively compact.
      When the amount of "live" data in the database drops below this value,
      cleaners will act to increase the occupancy percentage by compacting
      the database.
    </adm:description>
    <adm:default-behavior>
      <adm:defined>
@@ -489,15 +488,15 @@
  </adm:property>
  <adm:property name="db-run-cleaner" advanced="true">
    <adm:synopsis>
      Indicates whether the database cleaner threads should be
      enabled.
      Indicates whether the cleaner threads should be enabled to compact
      the database.
    </adm:synopsis>
    <adm:description>
      The cleaner threads are used to periodically compact the
      database by identifying database files with a low (that is, less than
      the amount specified by the db-cleaner-min-utilization property)
      percentage of live data, moving the remaining live data to the end
      of the log and deleting that file.
      database when it reaches a percentage of occupancy lower than the
      amount specified by the db-cleaner-min-utilization property. They identify
      database files with a low percentage of live data, and relocate their
      remaining live data to the end of the log.
    </adm:description>
    <adm:default-behavior>
      <adm:defined>
opendj-server-legacy/src/main/java/org/opends/server/backends/jeb/BackendImpl.java
@@ -810,7 +810,7 @@
    envConfig.setDurability(Durability.COMMIT_NO_SYNC);
    envConfig.setLockTimeout(0, TimeUnit.SECONDS);
    envConfig.setTxnTimeout(0, TimeUnit.SECONDS);
    envConfig.setConfigParam(CLEANER_MIN_FILE_UTILIZATION,
    envConfig.setConfigParam(CLEANER_MIN_UTILIZATION,
        String.valueOf(cfg.getDBCleanerMinUtilization()));
    envConfig.setConfigParam(LOG_FILE_MAX,
        String.valueOf(cfg.getDBLogFileMax()));
opendj-server-legacy/src/main/java/org/opends/server/backends/jeb/JEStorage.java
@@ -630,7 +630,7 @@
        .setLockTimeout(0, TimeUnit.SECONDS)
        .setTxnTimeout(0, TimeUnit.SECONDS)
        .setDurability(Durability.COMMIT_NO_SYNC)
        .setConfigParam(CLEANER_MIN_FILE_UTILIZATION, String.valueOf(config.getDBCleanerMinUtilization()))
        .setConfigParam(CLEANER_MIN_UTILIZATION, String.valueOf(config.getDBCleanerMinUtilization()))
        .setConfigParam(LOG_FILE_MAX, String.valueOf(config.getDBLogFileMax()));
    }
    else