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

Slow performance due to inefficient cache remove calls in template manager

    XMLWordPrintable

Details

    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce:

      Trigger a huge number of rendering errors (in parallel).

      Expected result:

      The requests complete quickly.

      Actual result:

      Errors like

      org.infinispan.util.concurrent.TimeoutException: ISPN000299: Unable to acquire lock after 60 seconds for key environment:/templates/xwikirenderingerror/rendering.macro.error.failed.vm and requestor CommandInvocation:<local>:9615112. Lock is held by CommandInvocation:<local>:9615111

      appear. This is because the code removes non-existing templates from the cache regardless if they ever existed.

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            MichaelHamann Michael Hamann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: