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

DefaultTasksManager errors when upgrading XWiki to 14.3 on PostgreSQL

    XMLWordPrintable

Details

    • Bug
    • Resolution: Solved By
    • Critical
    • None
    • 14.3
    • Index
    • Windows 11 Pro 64 bit, Edge 101, using a local instance of XWiki 14.3 on PostgreSQL 14, Tomcat 9.0.62, Java 17 (Oracle)
    • Unknown
    • N/A
    • N/A

    Description

      STEPS TO REPRODUCE

      1. Create an instance of XWiki 14.1 or 14.2.1 with a subwiki on PostgreSQL
      2. Close the instance
      3. Go to the newer instance (e.g. 14.3) and copy/cut the
        [...]webapps\xwiki

        folder and replace it (first delete the old one) in the same location on the older version

      1. Start XWiki and follow the Distribution Wizard through the upgrade process
      2. Observe the XWiki console

      EXPECTED RESULTS

      No errors/warnings are displayed.

      ACTUAL RESULTS

      When the upgraded instance is first accessed, many warnings are encountered in the console like:

      2022-05-02 12:48:40,663 [task-manager-consumer] WARN  o.x.i.i.DefaultTasksManager    - Error during the execution of task [org.xwiki.index.internal.TaskData@ca411bf[timestamp=1651484920549,docId=-1854111164632045327,type=links,attempts=10,stop=false,wikiId=subwikiglobal,version=]]. Cause: [NoResultException: No entity found for query].

      then the stacktrace continues with many errors:

      2022-05-02 12:48:40,949 [task-manager-consumer] WARN  o.x.i.i.DefaultTasksManager    - Error during the execution of task [org.xwiki.index.internal.TaskData@1339a875[timestamp=1651484920704,docId=-5439142040773549638,type=links,attempts=11,stop=false,wikiId=subwikiglobal,version=]]. Cause: [NoResultException: No entity found for query].
      2022-05-02 12:48:40,950 [task-manager-consumer] ERROR o.x.i.i.DefaultTasksManager    - [org.xwiki.index.internal.TaskData@1339a875[timestamp=1651484920704,docId=-5439142040773549638,type=links,attempts=11,stop=false,wikiId=subwikiglobal,version=]] abandoned because it has failed too many times.

      The issue seems to be reproducing only on PostgreSQL (tested also with MySQL, MariaDB and Oracle) and was reproduced when upgraded 14.1, 14.2 and 14.2.1 to 14.3 (didn't reproduce when upgraded 13.10.5 to 14.3 though).

      However, the issue couldn't be reproduced when upgraded XWiki 14.1 to 14.2.1.

      Attachments

        Issue Links

          Activity

            People

              mleduc Manuel Leduc
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: