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

If two identical tasks are queued at the same milisecond and exception is thrown

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 14.1
    • Index
    • None
    • Unknown

    Description

      When queuing two tasks with the same version, documentId and type at the same timestamp (millisecond), one of the tasks can fail to be canceled, leading to an exception

      java.util.concurrent.CancellationException
          at java.base/java.util.concurrent.CompletableFuture.cancel(CompletableFuture.java:2478)
          at org.xwiki.index.internal.DefaultTasksManager.consume(DefaultTasksManager.java:229)
          at org.xwiki.index.internal.DefaultTasksManager.run(DefaultTasksManager.java:209)
          at java.base/java.lang.Thread.run(Thread.java:840) 

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: