[JBoss JIRA] (ISPN-3829) Null value read with RR can be replaced by cache loader value
by William Burns (JIRA)
William Burns created ISPN-3829:
-----------------------------------
Summary: Null value read with RR can be replaced by cache loader value
Key: ISPN-3829
URL: https://issues.jboss.org/browse/ISPN-3829
Project: Infinispan
Issue Type: Bug
Components: Loaders and Stores
Affects Versions: 6.0.0.Final
Reporter: William Burns
Assignee: Mircea Markus
Currently the CacheLoaderInterceptor does the following check to determine if it should check the loader for a value
{code}
if (e == null || e.isNull() || e.getValue() == null) {
{code}
Unfortunately this means it checks the loader when a null value is in the entry when using RR. This can cause an issue if another transaction commits that key and puts a value that results in that value being inserted into the loader.
This also is a performance issue for RR, since it has to check the loader over and over for a given key even if it was found null the first time.
Initial thought is to do something like setSkipRemoteGet and that could actually be used for a dual purpose possibly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years
[JBoss JIRA] (ISPN-3826) CacheResultInterceptor has no InterceptorBindingType
by Nicolai Mainiero (JIRA)
Nicolai Mainiero created ISPN-3826:
--------------------------------------
Summary: CacheResultInterceptor has no InterceptorBindingType
Key: ISPN-3826
URL: https://issues.jboss.org/browse/ISPN-3826
Project: Infinispan
Issue Type: Bug
Components: JCache
Affects Versions: 5.3.0.Final
Reporter: Nicolai Mainiero
Assignee: Mircea Markus
Priority: Critical
I'm migrating an enterprise application from JBoss AS 7 to WebSphere AS 8. We use Infinispan as Cache via the JCache API. On JBoss everything works fine. On WebSphere we get the following exception:
org.apache.webbeans.exception.WebBeansConfigurationException: WebBeans XML configuration defined in file infinispan-jcache-5.3.0.Final.jar!/META-INF/beans.xml is failed. Reason is : Interceptor class : org.infinispan.jcache.annotation.CacheResultInterceptor must have at least one @InterceptorBindingType
I think the cause is that there is no InterceptorBindingType in the CacheResultInterceptor as required by the specification (https://docs.jboss.org/cdi/spec/1.0/html/interceptors.html) and the CDI implementation of the WebSphere (OpenWebBeans) does not accept Interceptors without bindings.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years