Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-21541

Set default log level for Solr shard logging to "error"

    Details

    • Bug Priority:
      Category 4
    • ACT Numbers:

      01006833, 01007460, 01009878, 01011713

      Description

      Description
      When ACS 5.2.7.1 is installed with default options (no Solr shards), the log level for index.shard.ShardRegistry is set to INFO and pollutes the logs by logging two info messages per minute, similar to the following:

      2020-04-27 16:42:45,123 INFO [org.alfresco.repo.index.shard.ShardRegistry]
      Solr Shard subscription: ShardInstance [shard=Shard [floc=Floc [storeRefs=[archive://SpacesStore], numberOfShards=1, shardMethod=MOD_ACL_ID, template=, hasContent=true, propertyBag={}], instance=0], baseUrl=/solr4/archive, port=8080, hostName=DESKTOP-GQUJ5FK] subscribed on Mon Apr 27 16:42:45 BST 2020 (timestamp = 1588002165050)
      2020-04-27 16:42:45,175 INFO [org.alfresco.repo.index.shard.ShardRegistry]
      Solr Shard subscription: ShardInstance [shard=Shard [floc=Floc [storeRefs=[workspace://SpacesStore], numberOfShards=1, shardMethod=MOD_ACL_ID, template=, hasContent=true, propertyBag={}], instance=0], baseUrl=/solr4/alfresco, port=8080, hostName=DESKTOP-GQUJ5FK] subscribed on Mon Apr 27 16:42:45 BST 2020 (timestamp = 1588002165042)

      Steps to reproduce

      1. Use the installer to install 5.2.7.1 with default options
      2. Start ACS 5.2.7.1 and observe the logs

      Expected Behaviour
      No info log messages for org.alfresco.repo.index.shard.ShardRegistry appear in the alfresco.log file if Solr shards haven't been configured or the user hasn't enabled them explicitly.
      See attached file 'alfresco.log_solrLoggingOff.txt', which was produced by setting log4j.logger.org.alfresco.repo.index.shard.ShardRegistry=error in a custom-log4j.properties under ../alfresco/extension/..

      Observed Behaviour
      Info log messages for org.alfresco.repo.index.shard.ShardRegistry are printed to alfresco.log every minute, polluting the logging output.
      See attached file 'alfresco.log_solrLogging.txt' which is produced using default settings for 5.2.7.1

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs
                  Reporter:
                  ewetchy Elisabeth Wetchy
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel