Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-9725

"The mirroring feature is not available." is written to the application log of non datacentre instances.

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 5.3.0
    • 4.14.4
    • None
    • None

      Non data centre Bitbucket Server instances will log the below at WARN level whenever someone hovers over the clone button in a repository:

      The mirroring feature is not available.

      When user hovers over the clone button, the frontend makes a request to the /rest/mirroring/latest/repos/$REPO_ID/mirrors REST endpoint.

      Stop doing this as it is unnecessary and adds noise to applications logs.

      Steps to fix:

      • Stop the frontend from making the request on non-DC instances
      • The message shouldn't be logged at WARN level

      Workaround

      One workaround is to set the log level for com.atlassian.bitbucket.internal.mirroring.upstream.DefaultSmartMirroringFeature to ERROR. Note care must be taken to only set this log level to ERROR for this class otherwise important logging could be lost. 

       

          Form Name

            [BSERV-9725] "The mirroring feature is not available." is written to the application log of non datacentre instances.

            Owen made changes -
            Workflow Original: Stash Workflow - Restricted [ 2014204 ] New: JAC Bug Workflow v3 [ 3137112 ]
            Owen made changes -
            Symptom Severity Original: Minor [ 14432 ] New: Severity 3 - Minor [ 15832 ]

            • Changed the log message level to debug instead of warn
            • Added a check for mirroring to the client resource

            Frank Doherty added a comment - Changed the log message level to debug instead of warn Added a check for mirroring to the client resource
            Frank Doherty made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: In Progress [ 3 ] New: Closed [ 6 ]
            Frank Doherty made changes -
            Fix Version/s New: 5.3.0 [ 72810 ]
            Frank Doherty made changes -
            Remote Link New: This issue links to "Bitbucket Server › Pull Request Build › bugfix-BSERV-9725-the-mirroring-feature-is-not-available (server-syd-bamboo)" [ 307829 ]
            Frank Doherty made changes -
            Remote Link New: This issue links to "Bitbucket Server › Pull Request Build with Coverage › bugfix-BSERV-9725-the-mirroring-feature-is-not-available (server-syd-bamboo)" [ 307751 ]
            Frank Doherty made changes -
            Assignee New: Frank Doherty [ fdoherty@atlassian.com ]
            Frank Doherty made changes -
            Status Original: Open [ 1 ] New: In Progress [ 3 ]
            Kristy made changes -
            Fix Version/s Original: 5.2.0 [ 71978 ]

              fdoherty@atlassian.com Frank Doherty
              rfriend rikf
              Affected customers:
              5 This affects my team
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: