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

Page Move feature should be more stable

    XMLWordPrintable

Details

    Description

      There are a lot of problems with moving large page trees via 'Move' feature. It usually takes a lot of time and can easily fail if any concurrent modifications from users are happening. The reason of time complexity if the fact that the whole move is executed in single DB transaction. Due to hibernate autoflush it can take O(N^2) operation because of persistence context scanning.

      Another problem is that move feature emits a ton of PageMoveEvents that are used to update various stuff (links, attachments, index). If the listener of the event fails, the system prints the error in log and continues move. These failed event listeners lead to system inconsistencies. For example links between pages might be corrupted or attachments not available.

      Basically, it is impossible right now to execute large move operation (tens of thousands of pages) and get successful results from the first run. This feature should be redesigned so that it becomes more stable on large customer instances.

      What workarounds are used right now by big customers:

      • unlink the instances from load balancer to ensure no concurrent modifications are hapenning
      • restrict affected spaces so that no one modifies pages there
      • use API instead of UI because UI timeouts after couple of minutes (with backend operation still running)
      • split initial move to batches to make it more managable
      • go to safe mode so that plugins don't fail on listening PageMove events

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              epyshnograev Efim (Inactive)
              Votes:
              28 Vote for this issue
              Watchers:
              28 Start watching this issue

              Dates

                Created:
                Updated: