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.
2 updates
Changes by Michael Hamann on 20/May/25 11:17
Summary:
Slow performance due to inefficient cache remove calls in template manager
Description:
*Steps to reproduce:*
Trigger a huge number of rendering errors (in parallel).
*Expected result:*
The requests complete quickly.
*Actual result:*
Errors like {noformat}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{noformat} appear. This is because the [code|https://github.com/xwiki/xwiki-platform/blob/9e7b4c03f2143978d891109a17159f73d4cdd318/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/internal/template/InternalTemplateManager.java#L1023] removes non-existing templates from the cache regardless if they ever existed.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.