[
https://issues.apache.org/jira/browse/JSPWIKI-1371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18147915#comment-18147915
]
ASF subversion and git services commented on JSPWIKI-1371:
----------------------------------------------------------
Commit e8c7507418d72dfb4f8e682dcdef18f7a0bde358 in jspwiki's branch
refs/heads/master from Arturo Bernal
[ https://gitbox.apache.org/repos/asf?p=jspwiki.git;h=e8c750741 ]
JSPWIKI-1371 Give each caching manager its own Ehcache cache manager
The caching manager used the CacheManager singleton of Ehcache, so every engine
of the same class loader shared the caches of the others, and shutting down one
engine shut them down for all. A page saved by an engine that is still running,
like the one in ImageTest, showed up in the search results of another engine,
and this made SearchManagerTest and PageRenamerTest fail at random. Each
caching manager now creates and shuts down a cache manager of its own.
> SearchManagerTest failed once in the CI of the release branch with an extra
> page ThisPage in the result
> -------------------------------------------------------------------------------------------------------
>
> Key: JSPWIKI-1371
> URL: https://issues.apache.org/jira/browse/JSPWIKI-1371
> Project: JSPWiki
> Issue Type: Bug
> Reporter: Arturo Bernal
> Priority: Major
> Labels: pull-request-available
>
> In the Java CI of the branch release/v3.0.1-rc2 (ubuntu-latest, Java 21),
> SearchManagerTest.testWildcardAfterUnderscoreInPageName failed: expected
> [Page_WithUnderscore] but was [Page_WithUnderscore, ThisPage]. The same
> commit passed in another run.
> What I measured: the surefire configuration of jspwiki-main uses runOrder
> random. ImageTest saves the page ThisPage in its test repository and does not
> delete it, while InsertPageTest deletes it in @AfterEach. Running ImageTest
> and then SearchManagerTest in the same JVM (-Dsurefire.runOrder=alphabetical)
> passed, so I could not reproduce the failure and the cause is not confirmed.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)