You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These tests were defunct in the TCK 1.0. The test check that exceptions from the loader are propagated via CompletionListenerFuture.onException.
The JavaDoc of loadAll says:
If a problem is encountered during the retrieving or loading of the objects,
an exception is provided to the {@link CompletionListener}. Once the
operation has completed, the specified CompletionListener is notified.
Implementations may have different concepts of error handling and ideas what "a problem" might be.
One use case of loadAll in a read through configuration is to pre-warm the cache. Maybe the data that caused the exception is never accessed at all.
In cache2k there is support for exceptions and resilience (e.g. a retry to load) per entry. That's why I have chosen to delay exceptions until the data is accessed by the application.
I think there are good arguments for both ways. In case loadAll is used to signal only an intend to read the data, an immediate exception may not be needed.
Maybe the TCK/Spec could be more permissive here?
The text was updated successfully, but these errors were encountered:
The TCK 1.1 corrects the following tests:
CacheLoaderTest.shouldPropagateExceptionUsingLoadAll
CacheLoaderWithoutReadThroughTest.shouldPropagateExceptionUsingLoadAll
These tests were defunct in the TCK 1.0. The test check that exceptions from the loader are propagated via
CompletionListenerFuture.onException
.The JavaDoc of
loadAll
says:Implementations may have different concepts of error handling and ideas what "a problem" might be.
One use case of
loadAll
in a read through configuration is to pre-warm the cache. Maybe the data that caused the exception is never accessed at all.In cache2k there is support for exceptions and resilience (e.g. a retry to load) per entry. That's why I have chosen to delay exceptions until the data is accessed by the application.
I think there are good arguments for both ways. In case
loadAll
is used to signal only an intend to read the data, an immediate exception may not be needed.Maybe the TCK/Spec could be more permissive here?
The text was updated successfully, but these errors were encountered: