Run new job in read-only mode - Alfresco Content Services - 23.4 - 23.4 - Ready - Alfresco - external

Alfresco Content Services

Platform
Alfresco
Product
Alfresco Content Services
Release
23.4
License
  1. Change the prop table cleaner default properties in alfresco-global.properties:
    1. Enable the new prop cleaner algorithm:
       system.prop_table_cleaner.algorithm=V2
      
    2. Set the prop cleaner to read only:
       system.delete_not_exists.read_only=true
      							
    3. Set the prop cleaner timeout:
       # This will stop the next batch from being processed if the elapsed time from
       the job start is greater than 1 hour
       system.delete_not_exists.timeout_seconds=3600
      							
  2. Restart the application server.
  3. Open a web browser.
    1. Go to <alfresco_ip>/alfresco/s/enterprise/admin/admin-log-settings.
    2. Enable debug logging to see the amount of data that would be deleted by the algorithm. Change the log setting to DEBUG for package name:
       org.alfresco.repo.domain.schema.script.DeleteNotExistsExecutor
      							
  4. Go to <alfresco_ip>/alfresco/s/enterprise/admin/admin-scheduledjobs in a web browser, and execute the propTablesCleanupJobDetail job.
  5. Check the logs to see which values would be deleted from each table:
     alf_prop_root
     alf_prop_value
     alf_prop_string_value
     alf_prop_serializable_value
     alf_prop_double_value
    

    You should see something like:

     [org.alfresco.repo.domain.schema.script.DeleteNotExistsExecutor]
     [DefaultScheduler_Worker-10] Script would have deleted a total of X items from
     table alf_prop_root.