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

Comparing Huge Changes Between Versions in Page History Throws IndexOutOfBoundsException

    XMLWordPrintable

Details

    Description

      Steps to reproduce:

      1. create large page
      2. do more than 9500 changes to the content

      Expected behaviour:
      File comparison appear

      Actual:
      Error thrown in UI:

      In atlassian-confluence.log:

      2015-12-18 18:37:22,525 ERROR [http-bio-8563-exec-2] [confluence.pages.actions.AbstractDiffPagesAction] execute Error while generating diff: (page: 54-fix v.6 (6291463) vs page: 54-fix v.7 (5505039))
       -- referer: http://localhost:8563/pages/viewpreviousversions.action?pageId=5505039 | url: /pages/diffpagesbyversion.action | userName: admin | action: diffpagesbyversion | page: 5505039
      com.atlassian.confluence.diff.DiffException: Index: 175220, Size: 175220
      	at com.atlassian.confluence.diff.DaisyHtmlDiffer.createOrGetFutureDiff(DaisyHtmlDiffer.java:159)
      	at com.atlassian.confluence.diff.DaisyHtmlDiffer.diff(DaisyHtmlDiffer.java:103)
      	at com.atlassian.confluence.diff.WikiConvertingHtmlDiffer.diff(WikiConvertingHtmlDiffer.java:31)
      	...
      	
      	Caused by: java.lang.IndexOutOfBoundsException: Index: 175220, Size: 175220
      	at java.util.ArrayList.rangeCheck(ArrayList.java:635)
      	at java.util.ArrayList.get(ArrayList.java:411)
      	at org.outerj.daisy.diff.html.TextNodeComparator.getTextNode(TextNodeComparator.java:67)
      	at org.outerj.daisy.diff.html.TextNodeComparator.handlePossibleChangedPart(TextNodeComparator.java:136)
      
      

      Diagnosis:
      Problem still happening even after setting the timeout to 4.5 minute and increasing the heap:

      1. parameter confluence.html.diff.timeout has been increased as per advice in https://confluence.atlassian.com/display/CONFKB/Comparing+Page+Versions+Fails+Due+to+Timeout+Exceeded
        -Dconfluence.html.diff.timeout=270000
        
        
      1. increase the heap (-Xmx) for the instance
      2. Problem still occur

       

      Workaround:

      No known workaround

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jalbion Janet Albion (Inactive)
              Votes:
              8 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated: