Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: DOCU-1730

...

Consistency checks and fixes

(info) To obtain detailed information about consistency checks in log files, make sure you also have the appropriate setting enabled in the configuration of the log4j xml file such as:

Code Block
    <Logger name="org.apache.jackrabbit" level="info">
      <AppenderRef ref="console"/>
    </Logger>  

Together with a consistency check for a workspace enabled (see below) for example, the logger would print the following into the log file:

Code Block
linenumberstrue
INFO  org.apache.jackrabbit.core.RepositoryImpl 16.10.2018 09:48:32 -- initializing workspace 'website'...
INFO  org.apache.jackrabbit.core.fs.local.LocalFileSystem 16.10.2018 09:48:32 -- LocalFileSystem initialized at path /m/mgnl-bundles/apache-tomcat/webapps/magnoliaAuthor/repositories/magnolia/workspaces/website/default
INFO  org.apache.jackrabbit.core.persistence.bundle.ConsistencyCheckerImpl 16.10.2018 09:48:32 -- website: checked 601 bundles.
INFO  org.apache.jackrabbit.core.query.lucene.SearchIndex 16.10.2018 09:48:32 -- Index initialized: /m/mgnl-bundles/apache-tomcat/webapps/magnoliaAuthor/repositories/magnolia/workspaces/website/index Version: 3
INFO  org.apache.jackrabbit.core.RepositoryImpl 16.10.2018 09:48:32 -- workspace 'website' initialized

Include Page
INCL:_loggingLevels_and_consistencyChecks
INCL:_loggingLevels_and_consistencyChecks
See especially line 3 in the result log.

Search index

You can run a search index consistency check for each workspace on startup. The workspace.xml files are available in /<CATALINA_HOME>/webapps/<contextPath>/repositories/magnolia/workspaces/*.

...