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

abobrov
22.50.2008 e546352d03f0263efe6cfa514d896ee1c7044eea
- rename and move [entry-]cache-preload from default entry cache configuration to global configuration.
- abandon default entry cache configuration and objectclass which can be resurrected later if more
related configuration attributes come in.
- minor cleanup to preload messages.
1 files deleted
6 files modified
122 ■■■■ changed files
opends/resource/config/config.ldif 2 ●●● patch | view | raw | blame | history
opends/resource/schema/02-config.ldif 11 ●●●● patch | view | raw | blame | history
opends/src/admin/defn/org/opends/server/admin/std/DefaultEntryCacheConfiguration.xml 69 ●●●●● patch | view | raw | blame | history
opends/src/admin/defn/org/opends/server/admin/std/GlobalConfiguration.xml 21 ●●●●● patch | view | raw | blame | history
opends/src/admin/defn/org/opends/server/admin/std/RootConfiguration.xml 11 ●●●●● patch | view | raw | blame | history
opends/src/messages/messages/extension.properties 6 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/core/EntryCacheConfigManager.java 2 ●●● patch | view | raw | blame | history
opends/resource/config/config.ldif
@@ -50,6 +50,7 @@
ds-cfg-idle-time-limit: 0 seconds
ds-cfg-save-config-on-successful-startup: true
ds-cfg-etime-resolution: milliseconds
ds-cfg-entry-cache-preload: false
ds-cfg-allowed-task: org.opends.server.tasks.AddSchemaFileTask
ds-cfg-allowed-task: org.opends.server.tasks.BackupTask
ds-cfg-allowed-task: org.opends.server.tasks.DisconnectClientTask
@@ -491,7 +492,6 @@
dn: cn=Entry Caches,cn=config
objectClass: top
objectClass: ds-cfg-branch
objectClass: ds-cfg-default-entry-cache
cn: Entry Caches
dn: cn=FIFO,cn=Entry Caches,cn=config
opends/resource/schema/02-config.ldif
@@ -2183,7 +2183,7 @@
  SINGLE-VALUE
  X-ORIGIN 'OpenDS Directory Server' )
attributeTypes: ( 1.3.6.1.4.1.26027.1.1.446
  NAME 'ds-cfg-cache-preload'
  NAME 'ds-cfg-entry-cache-preload'
  SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
  SINGLE-VALUE
  X-ORIGIN 'OpenDS Directory Server' )
@@ -2592,7 +2592,8 @@
        ds-cfg-idle-time-limit $
        ds-cfg-workflow-configuration-mode $
        ds-cfg-save-config-on-successful-startup $
        ds-cfg-etime-resolution )
        ds-cfg-etime-resolution $
        ds-cfg-entry-cache-preload )
  X-ORIGIN 'OpenDS Directory Server' )
objectClasses: ( 1.3.6.1.4.1.26027.1.2.40
  NAME 'ds-cfg-root-dn-user'
@@ -3693,9 +3694,3 @@
  STRUCTURAL
  MUST ( ds-cfg-backend )
  X-ORIGIN 'OpenDS Directory Server' )
objectClasses: ( 1.3.6.1.4.1.26027.1.2.180
  NAME 'ds-cfg-default-entry-cache'
  SUP ds-cfg-branch
  STRUCTURAL
  MAY ds-cfg-cache-preload
  X-ORIGIN 'OpenDS Directory Server' )
opends/src/admin/defn/org/opends/server/admin/std/DefaultEntryCacheConfiguration.xml
File was deleted
opends/src/admin/defn/org/opends/server/admin/std/GlobalConfiguration.xml
@@ -810,4 +810,25 @@
      </ldap:attribute>
    </adm:profile>
  </adm:property>
  <adm:property name="entry-cache-preload" mandatory="false">
    <adm:synopsis>
      Indicates whether or not to preload the entry cache on startup.
    </adm:synopsis>
    <adm:requires-admin-action>
      <adm:server-restart />
    </adm:requires-admin-action>
    <adm:default-behavior>
      <adm:defined>
        <adm:value>false</adm:value>
      </adm:defined>
    </adm:default-behavior>
    <adm:syntax>
      <adm:boolean />
    </adm:syntax>
    <adm:profile name="ldap">
      <ldap:attribute>
        <ldap:name>ds-cfg-entry-cache-preload</ldap:name>
      </ldap:attribute>
    </adm:profile>
  </adm:property>
</adm:managed-object>
opends/src/admin/defn/org/opends/server/admin/std/RootConfiguration.xml
@@ -203,17 +203,6 @@
      </cli:relation>
    </adm:profile>
  </adm:relation>
  <adm:relation name="default-entry-cache">
    <adm:one-to-one />
    <adm:profile name="ldap">
      <ldap:rdn-sequence>cn=Entry Caches,cn=config</ldap:rdn-sequence>
    </adm:profile>
    <adm:profile name="cli">
      <cli:relation>
        <cli:default-property name="cache-preload" />
      </cli:relation>
    </adm:profile>
  </adm:relation>
  <adm:relation name="entry-cache">
    <adm:one-to-many />
    <adm:profile name="ldap">
opends/src/messages/messages/extension.properties
@@ -80,12 +80,12 @@
SEVERE_WARN_CACHE_PRELOAD_INTERRUPTED_13=The entry cache preload has been \
 interrupted
SEVERE_ERR_CACHE_PRELOAD_COLLECTOR_FAILED_14=The entry cache preload was \
 unable to complete collector processing for %s backend, and as a result \
 unable to complete preload processing for %s backend, and as a result \
 the entry cache preload for this backend will be incomplete
SEVERE_WARN_CACHE_PRELOAD_BACKEND_FAILED_15=The entry cache preload is not \
 supported by %s backend, and as a result no entries from this backend will \
 be preloaded onto the entry cache
SEVERE_ERR_CACHE_PRELOAD_ENTRY_FAILED_16=Failed to preload %s entry onto \
 be preloaded into the entry cache
SEVERE_ERR_CACHE_PRELOAD_ENTRY_FAILED_16=Failed to preload %s entry into \
 the entry cache:  %s
MILD_ERR_EXTOP_PASSMOD_ILLEGAL_REQUEST_ELEMENT_TYPE_32=The password modify \
 extended request sequence included an ASN.1 element of an invalid type:  %s
opends/src/server/org/opends/server/core/EntryCacheConfigManager.java
@@ -228,7 +228,7 @@
    }
    // If requested preload the entry cache.
    if (rootConfiguration.getDefaultEntryCache().isCachePreload()) {
    if (rootConfiguration.getGlobalConfiguration().isEntryCachePreload()) {
      // Kick off preload arbiter main thread.
      EntryCachePreloader preloadThread = new EntryCachePreloader();
      preloadThread.start();