AnsweredAssumed Answered

Alfresco 6 : org.alfresco.repo.node.index.fullindexrecoverycomponent Logging

Question asked by quentin on Feb 11, 2019
Latest reply on Feb 12, 2019 by quentin

Hi,

I'm using Alfresco 6 and Solr 6.

I would like to see logs when I do a Full indexation (index.recovery.mode=FULL).

Before to upgrade my project in Alfresco 6, I was in 3.3.

With log4j in 3.3 I did in log4j.properties :

log4j.logger.org.alfresco.repo.node.index.FullIndexRecoveryComponent=info, FileAlfrescoIndexReco

# Alfresco for index building
log4j.appender.FileAlfrescoIndexReco=org.apache.log4j.RollingFileAppender
log4j.appender.FileAlfrescoIndexReco.File=${logs.dir}/alfresco_fullIndexRecovery.log
log4j.appender.FileAlfrescoIndexReco.MaxFileSize=100MB
log4j.appender.FileAlfrescoIndexReco.layout=org.apache.log4j.PatternLayout
log4j.appender.FileAlfrescoIndexReco.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss,SSS} %-5p [%t] %c - %m%n

And the result was : 

08 oct. 2018 10:29:23,200 INFO [main] org.alfresco.repo.node.index.FullIndexRecoveryComponent - Index recovery started: 1.831 transactions.
08 oct. 2018 10:29:23,289 INFO [main] org.alfresco.repo.node.index.FullIndexRecoveryComponent - 10 % complete.
08 oct. 2018 10:29:23,289 INFO [main] org.alfresco.repo.node.index.FullIndexRecoveryComponent - 20 % complete.
08 oct. 2018 10:29:23,290 INFO [main] org.alfresco.repo.node.index.FullIndexRecoveryComponent - 30 % complete.
08 oct. 2018 10:29:23,291 INFO [main] org.alfresco.repo.node.index.FullIndexRecoveryComponent - 40 % complete.
08 oct. 2018 10:29:23,291 INFO [main] org.alfresco.repo.node.index.FullIndexRecoveryComponent - 50 % complete.
08 oct. 2018 10:29:31,914 INFO [main] org.alfresco.repo.node.index.FullIndexRecoveryComponent - 60 % complete.
08 oct. 2018 10:29:31,915 INFO [main] org.alfresco.repo.node.index.FullIndexRecoveryComponent - 70 % complete.
08 oct. 2018 10:29:31,916 INFO [main] org.alfresco.repo.node.index.FullIndexRecoveryComponent - 80 % complete.
08 oct. 2018 10:29:31,917 INFO [main] org.alfresco.repo.node.index.FullIndexRecoveryComponent - 90 % complete.
08 oct. 2018 10:29:31,918 INFO [main] org.alfresco.repo.node.index.FullIndexRecoveryComponent - 100 % complete.
08 oct. 2018 10:29:33,277 INFO [main] org.alfresco.repo.node.index.FullIndexRecoveryComponent - Index recovery completed.

 

In Alfresco 6 it does not works, my logging file is empty.

And I don't find org.alfresco.repo.node.index.FullIndexRecoveryComponent anymore.

So, org.alfresco.repo.node.index.FullIndexRecoveryComponent is deprecated in alfresco 6 ?

And if Yes, there is another solution to log the full indexation (index.recovery.mode=FULL).

Best Regards,

Quentin

Outcomes