Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-14284

delete/move page with big attachment failed

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 8.4.4
    • Fix Version/s: None
    • Component/s: Old Core
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Hello,
      When I try to delete or move a page with big attachments (ie 8 attachments and 20 Mo each) the deletion failed with this error:

      Some errors happened:
          Exception thrown during job execution
      

      Moving a page failed to (the copy stage working well but the delete stage failed):

      No relative links to update in [Home » Encyclopédie » SMQ-M2 : Test rename].
      Java heap space
      class java.lang.OutOfMemoryError: Java heap space
          at java.util.Arrays.copyOf(Arrays.java:3332)
          at java.lang.StringCoding.safeTrim(StringCoding.java:89)
          at java.lang.StringCoding.access$100(StringCoding.java:50)
          at java.lang.StringCoding$StringDecoder.decode(StringCoding.java:154)
          at java.lang.StringCoding.decode(StringCoding.java:193)
      

      The solution to manage deletion is to remove each (or some) attachment before to delete the page.

      I tested with jetty package with a xar page of 122 Mo size and this xwiki properties:

      xwiki.store.attachment.hint=file
      xwiki.store.attachment.versioning.hint=file
      xwiki.store.attachment.recyclebin.hint=file
      

      It seem that the deletion working well when the size of the page (page and attachments) is lowered under 100 Mo.

      Thxs
      Pascal B

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tmortagne Thomas Mortagne
                Reporter:
                Pbas Pascal BASTIEN
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: