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

Endless spinning wheel still displayed in progress logs when a subwiki creation is finished can be confusing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 14.10.9, 15.3-rc-1
    • 7.0-milestone-2
    • Wiki
    • Windows 11 Pro 64 bit, Chrome 112, using a local instance of XWiki 15.2 on PostgreSQL 15, Tomcat 9.0.73
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce

      1. Go to Drawer > Wiki Index
      2. Click 'Create Wiki' button
      3. Type a Pretty Name, a Wiki Identifier and select the Flavor
      4. Click 'Next Step' button
      5. Click 'Create' button
      6. After the subwiki creation process is finished, observe the logs in the browser page

      Expected results

      After the subwiki creation is finished, no spinning wheel is displayed in the logs.

      Actual results

      Even if the subwiki creation process is finished, the endless spinning wheel is still displayed in the logs on the beginning of the last line:

      Finished job of type [wikicreationjob] with identifier [wikicreation/createandinstall/<subwiki>]

      which can be confusing for users, since the spinning wheel usually indicates that something is still in progress.

      The longer #printLogs take, the likelier it is that a race condition occurs (i.e., the status of the job pass to FINISHED during the execution of #printLogs).
      Meaning that, the issue was existing since XWIKI-10043, but is getting easier to experience as the number of operations required to initialize a sub-wiki grows.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: