[JBoss JIRA] (ISPN-2777) ReplicatedConsistentHash.isKeyLocalToNode(node, key) should return false if the node is not a member yet
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/ISPN-2777?page=com.atlassian.jira.plugin.... ]
Adrian Nistor updated ISPN-2777:
--------------------------------
Description:
isKeyLocalToNode currently returns true all the time. Failing to implement isKeyLocalToNode properly makes it impossible to detect if the key is not yet available locally (because state transfer is still in progress) and should be fetched remotely before proceeding with a conditional command. This is a prerequisite for ISPN-2757.
> ReplicatedConsistentHash.isKeyLocalToNode(node, key) should return false if the node is not a member yet
> --------------------------------------------------------------------------------------------------------
>
> Key: ISPN-2777
> URL: https://issues.jboss.org/browse/ISPN-2777
> Project: Infinispan
> Issue Type: Bug
> Components: Core API
> Affects Versions: 5.2.0.CR3
> Reporter: Adrian Nistor
> Assignee: Adrian Nistor
> Fix For: 5.2.4.Final, 5.3.0.Final
>
>
> isKeyLocalToNode currently returns true all the time. Failing to implement isKeyLocalToNode properly makes it impossible to detect if the key is not yet available locally (because state transfer is still in progress) and should be fetched remotely before proceeding with a conditional command. This is a prerequisite for ISPN-2757.
--
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, 10 months
[JBoss JIRA] (ISPN-2777) ReplicatedConsistentHash.isKeyLocalToNode(node, key) should return false if the node is not a member yet
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/ISPN-2777?page=com.atlassian.jira.plugin.... ]
Adrian Nistor updated ISPN-2777:
--------------------------------
Workaround Description: (was: isKeyLocalToNode currently returns true all the time. Failing to implement isKeyLocalToNode properly makes it impossible to detect if the key is not yet available locally (because state transfer is still in progress) and should be fetched remotely before proceeding with a conditional command. This is a prerequisite for ISPN-2757.)
> ReplicatedConsistentHash.isKeyLocalToNode(node, key) should return false if the node is not a member yet
> --------------------------------------------------------------------------------------------------------
>
> Key: ISPN-2777
> URL: https://issues.jboss.org/browse/ISPN-2777
> Project: Infinispan
> Issue Type: Bug
> Components: Core API
> Affects Versions: 5.2.0.CR3
> Reporter: Adrian Nistor
> Assignee: Adrian Nistor
> Fix For: 5.2.4.Final, 5.3.0.Final
>
>
> isKeyLocalToNode currently returns true all the time. Failing to implement isKeyLocalToNode properly makes it impossible to detect if the key is not yet available locally (because state transfer is still in progress) and should be fetched remotely before proceeding with a conditional command. This is a prerequisite for ISPN-2757.
--
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, 10 months
[JBoss JIRA] (ISPN-2906) SyncCacheListenerTest.testSyncTxRepl failing randomly
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/ISPN-2906?page=com.atlassian.jira.plugin.... ]
Adrian Nistor commented on ISPN-2906:
-------------------------------------
[~galderz] I can see a GetKeyValueCommand returning null and right before that a message is logged:
{noformat}
2013-03-11 12:57:45,988 285839 TRACE [org.infinispan.interceptors.ReplicationInterceptor] (testng-SyncCacheListenerTest:cache) Not doing a remote get for key age since entry is mapped to current node (SyncCacheListenerTest-NodeB-23486) or is in L1. Owners are [SyncCacheListenerTest-NodeA-26028, SyncCacheListenerTest-NodeB-23486]
{noformat}
I think this was caused by ISPN-2777 which was resolved 3 days before you created this issue. Did you run on latest? Why do you think this is a TX issue.
I tried to reproduce this but could not get the same type of failure. Instead I got a failure due to suspect exception on prepare aborting the tx which is actually the same as ISPN-2402.
Can you still reproduce this on latest code? Please add a fresh log if so. Thanks!
> SyncCacheListenerTest.testSyncTxRepl failing randomly
> -----------------------------------------------------
>
> Key: ISPN-2906
> URL: https://issues.jboss.org/browse/ISPN-2906
> Project: Infinispan
> Issue Type: Bug
> Components: Listeners, Transactions
> Reporter: Galder Zamarreño
> Assignee: Mircea Markus
> Labels: testsuite_stability
> Fix For: 5.3.0.Alpha1
>
> Attachments: testSyncTxRepl-0.log
>
>
> {code}testSyncTxRepl(org.infinispan.replication.SyncCacheListenerTest) Time elapsed: 0.04 sec <<< FAILURE!
> java.lang.AssertionError: "age" obtained from cache2 must be non-null
> at org.testng.AssertJUnit.fail(AssertJUnit.java:59)
> at org.testng.AssertJUnit.assertTrue(AssertJUnit.java:24)
> at org.testng.AssertJUnit.assertNotNull(AssertJUnit.java:267)
> at org.infinispan.replication.SyncCacheListenerTest.testSyncTxRepl(SyncCacheListenerTest.java:99)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
> at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
> at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
> at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
> at org.testng.TestRunner.privateRun(TestRunner.java:767)
> at org.testng.TestRunner.run(TestRunner.java:617)
> at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
> at org.testng.SuiteRunner.access$000(SuiteRunner.java:37)
> at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:368)
> at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> at java.lang.Thread.run(Thread.java:722){code}
--
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, 10 months
[JBoss JIRA] (ISPN-2609) Infinispan SpringCache throws java.lang.NullPointerException: Null values are not supported!
by Olaf Bergner (JIRA)
[ https://issues.jboss.org/browse/ISPN-2609?page=com.atlassian.jira.plugin.... ]
Olaf Bergner commented on ISPN-2609:
------------------------------------
I implemented a solution based on Roland's work at https://github.com/obergner/infinispan/tree/t_ispn2609.
> Infinispan SpringCache throws java.lang.NullPointerException: Null values are not supported!
> --------------------------------------------------------------------------------------------
>
> Key: ISPN-2609
> URL: https://issues.jboss.org/browse/ISPN-2609
> Project: Infinispan
> Issue Type: Bug
> Components: Spring integration
> Affects Versions: 5.1.6.FINAL
> Reporter: Roland Csupor
> Assignee: Mircea Markus
> Fix For: 5.3.0.Final
>
>
> I trying to use Infinispan as Spring cache, but if my function returns null, I got an exception, cause Spring tries to cache this result value:
> {noformat}
> Caused by: java.lang.NullPointerException: Null values are not supported!
> at org.infinispan.CacheImpl.assertKeyValueNotNull(CacheImpl.java:203) ~[infinispan-core-5.1.6.FINAL.jar:5.1.6.FINAL]
> at org.infinispan.CacheImpl.put(CacheImpl.java:699) ~[infinispan-core-5.1.6.FINAL.jar:5.1.6.FINAL]
> at org.infinispan.CacheImpl.put(CacheImpl.java:694) ~[infinispan-core-5.1.6.FINAL.jar:5.1.6.FINAL]
> at org.infinispan.CacheSupport.put(CacheSupport.java:53) ~[infinispan-core-5.1.6.FINAL.jar:5.1.6.FINAL]
> at org.infinispan.spring.provider.SpringCache.put(SpringCache.java:83) ~[infinispan-spring-5.1.6.FINAL.jar:5.1.6.FINAL]
> at org.springframework.cache.interceptor.CacheAspectSupport.update(CacheAspectSupport.java:390) ~[spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE]
> at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:218) ~[spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE]
> at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:66) ~[spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE]
> {noformat}
> Did I misconfigured something?
--
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, 10 months