[
https://jira.jboss.org/jira/browse/JBCACHE-1561?page=com.atlassian.jira.p...
]
Galder Zamarreno updated JBCACHE-1561:
--------------------------------------
Summary: SingletonStoreCacheLoader does not work with MVCC (was: Issue
on view change with single cache store)
Workaround Description: Use pessimistic locking rather MVCC until the issue has been
fixed
Fix Version/s: 3.3.0.GA
Affects Version/s: 3.2.1.GA
Description:
For some reason SingletonStoreCacheLoaderTest had been configured with PL caches:
cache1.getConfiguration().setNodeLockingScheme(NodeLockingScheme.PESSIMISTIC);
cache2.getConfiguration().setNodeLockingScheme(NodeLockingScheme.PESSIMISTIC);
cache3.getConfiguration().setNodeLockingScheme(NodeLockingScheme.PESSIMISTIC);
Removing these makes caches use MVCC which in turn makes testPutCacheLoaderWithPush
throw:
java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException: Not
supported in UnversionedNode
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
at java.util.concurrent.FutureTask.get(FutureTask.java:111)
at
org.jboss.cache.loader.SingletonStoreCacheLoaderTest.waitForPushStateCompletion(SingletonStoreCacheLoaderTest.java:273)
at
org.jboss.cache.loader.SingletonStoreCacheLoaderTest.testPutCacheLoaderWithPush(SingletonStoreCacheLoaderTest.java:160)
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:616)
at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:644)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:546)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:700)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1002)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:137)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:121)
at org.testng.TestRunner.runWorkers(TestRunner.java:909)
at org.testng.TestRunner.privateRun(TestRunner.java:618)
at org.testng.TestRunner.run(TestRunner.java:499)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:332)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:327)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:299)
at org.testng.SuiteRunner.run(SuiteRunner.java:204)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:915)
at org.testng.TestNG.runSuitesLocally(TestNG.java:879)
at org.testng.TestNG.run(TestNG.java:787)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)
Caused by: java.lang.UnsupportedOperationException: Not supported in UnversionedNode
at org.jboss.cache.AbstractNode.getChildrenDirect(AbstractNode.java:270)
at
org.jboss.cache.invocation.NodeInvocationDelegate.getChildrenDirect(NodeInvocationDelegate.java:164)
at
org.jboss.cache.loader.SingletonStoreCacheLoader.pushState(SingletonStoreCacheLoader.java:256)
at
org.jboss.cache.loader.SingletonStoreCacheLoader$2.call(SingletonStoreCacheLoader.java:227)
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:636)
Assignee: Galder Zamarreno (was: Manik Surtani)
SingletonStoreCacheLoader does not work with MVCC
-------------------------------------------------
Key: JBCACHE-1561
URL:
https://jira.jboss.org/jira/browse/JBCACHE-1561
Project: JBoss Cache
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 3.2.1.GA
Reporter: Mircea Markus
Assignee: Galder Zamarreno
Fix For: 3.3.0.GA
For some reason SingletonStoreCacheLoaderTest had been configured with PL caches:
cache1.getConfiguration().setNodeLockingScheme(NodeLockingScheme.PESSIMISTIC);
cache2.getConfiguration().setNodeLockingScheme(NodeLockingScheme.PESSIMISTIC);
cache3.getConfiguration().setNodeLockingScheme(NodeLockingScheme.PESSIMISTIC);
Removing these makes caches use MVCC which in turn makes testPutCacheLoaderWithPush
throw:
java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException: Not
supported in UnversionedNode
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
at java.util.concurrent.FutureTask.get(FutureTask.java:111)
at
org.jboss.cache.loader.SingletonStoreCacheLoaderTest.waitForPushStateCompletion(SingletonStoreCacheLoaderTest.java:273)
at
org.jboss.cache.loader.SingletonStoreCacheLoaderTest.testPutCacheLoaderWithPush(SingletonStoreCacheLoaderTest.java:160)
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:616)
at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:644)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:546)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:700)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1002)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:137)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:121)
at org.testng.TestRunner.runWorkers(TestRunner.java:909)
at org.testng.TestRunner.privateRun(TestRunner.java:618)
at org.testng.TestRunner.run(TestRunner.java:499)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:332)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:327)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:299)
at org.testng.SuiteRunner.run(SuiteRunner.java:204)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:915)
at org.testng.TestNG.runSuitesLocally(TestNG.java:879)
at org.testng.TestNG.run(TestNG.java:787)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)
Caused by: java.lang.UnsupportedOperationException: Not supported in UnversionedNode
at org.jboss.cache.AbstractNode.getChildrenDirect(AbstractNode.java:270)
at
org.jboss.cache.invocation.NodeInvocationDelegate.getChildrenDirect(NodeInvocationDelegate.java:164)
at
org.jboss.cache.loader.SingletonStoreCacheLoader.pushState(SingletonStoreCacheLoader.java:256)
at
org.jboss.cache.loader.SingletonStoreCacheLoader$2.call(SingletonStoreCacheLoader.java:227)
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:636)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira