Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-90436

Updating or adding attachments to a page with many incoming links is slow

      Issue Summary

      When updating an attachment on a page with many incoming links, the request can be very slow or even timeout. This is due to attachment reconciliation which occurs in the background to ensure attachment consistency.

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Create a page and copy the link to the page (called main page)
      2. Create 1500+ pages all having a hyperlink to the main page
      3. Add or update an attachment on the main page

      Expected Results

      Reconciliation should only reconcile content that references the attachment, and the request should complete in a timely manner.

      Actual Results

      Reconciliation reconciles content that references the content an attachment is "attached to" causing unnecessary reconciliation - this causes the request to take longer than necessary.

      In thread dumps you will find a majority of the request time in either:

      • Pre 8.1 AttachmentRelatedContentReconciliationListener
      • 8.1+ ReconcileReferringContentTask

      Workaround

      There are 3 known work-arounds:

      • Minimise how many incoming links are coming into the page
      • Optimise any Synchrony bottlenecks present in the system
      • Disable collaborative editing

            [CONFSERVER-90436] Updating or adding attachments to a page with many incoming links is slow

            Hannes Medwed added a comment - - edited

            Come on guys a short answer would be nice.
            Since Confluence 9.X.X has not LTS Version we need to know if this bug was fixed in the latest 8.5.17 version

            Hannes Medwed added a comment - - edited Come on guys a short answer would be nice. Since Confluence 9.X.X has not LTS Version we need to know if this bug was fixed in the latest 8.5.17 version

            In which 8.5. X LTS version will this fix be provided

            Hannes Medwed added a comment - In which 8.5. X LTS version will this fix be provided

            A fix for this issue is available in Confluence Data Center 9.1.0.
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Jordan Anslow added a comment - A fix for this issue is available in Confluence Data Center 9.1.0. Upgrade now or check out the Release Notes to see what other issues are resolved.

            Confluence 8.5.X is also affected

            Hannes Medwed added a comment - Confluence 8.5.X is also affected

            We've seen large ( in terms of space and page count ) instance hit problems at lower incoming page count, 400-500, but we've never seen a timeout below 200 incoming links.

            David Benson [draw.io] added a comment - We've seen large ( in terms of space and page count ) instance hit problems at lower incoming page count, 400-500, but we've never seen a timeout below 200 incoming links.

            Hi, we're having this issue in our instance of Confluence data center version 8.4.1 on a page with 72 incoming links, 20 external links, and 21 children. The reproduction of the issue mentions 1,500 incoming links which is a larger number, but our issue (and many other customers) is far fewer. Do the number of external links and children also factor into the bug issue with a fewer number of incoming links?

            Andrew Showalter added a comment - Hi, we're having this issue in our instance of Confluence data center version 8.4.1 on a page with 72 incoming links, 20 external links, and 21 children. The reproduction of the issue mentions 1,500 incoming links which is a larger number, but our issue (and many other customers) is far fewer. Do the number of external links and children also factor into the bug issue with a fewer number of incoming links?

              3061d200deff Arpan Agrawal
              ephillips@atlassian.com Edward
              Affected customers:
              23 This affects my team
              Watchers:
              24 Start watching this issue

                Created:
                Updated:
                Resolved: