Branch: refs/heads/backport-1367-to-stable-16.10.x
Home:
https://github.com/xwiki/xwiki-commons
Commit: 563253d9af72931d0bece88a21c3100d8b6017ff
https://github.com/xwiki/xwiki-commons/commit/563253d9af72931d0bece88a21c31…
Author: Michael Hamann <michael.hamann(a)xwiki.com>
Date: 2025-06-16 (Mon, 16 Jun 2025)
Changed paths:
M
xwiki-commons-core/xwiki-commons-cache/xwiki-commons-cache-api/src/main/java/org/xwiki/cache/internal/CacheLoader.java
M
xwiki-commons-core/xwiki-commons-cache/xwiki-commons-cache-api/src/test/java/org/xwiki/cache/internal/CacheLoaderTest.java
Log Message:
-----------
XCOMMONS-3363: The cache loader blocks and throws when setting the cache value blocks
and throws (#1367)
* Make the value available to waiting threads before setting the value
in the cache.
* Catch and log any exceptions thrown by setting the cache.
* Add tests to assert the new behavior.
(cherry picked from commit ce2125f5ebdfdf36b36908a9ccf1a96277909fad)
To unsubscribe from these emails, change your notification settings at
https://github.com/xwiki/xwiki-commons/settings/notifications