[JBoss JIRA] Resolved: (JBCACHE-497) NetworkManagementAopTest failure
by Ben Wang (JIRA)
[ http://jira.jboss.com/jira/browse/JBCACHE-497?page=all ]
Ben Wang resolved JBCACHE-497.
------------------------------
Resolution: Out of Date
> NetworkManagementAopTest failure
> --------------------------------
>
> Key: JBCACHE-497
> URL: http://jira.jboss.com/jira/browse/JBCACHE-497
> Project: JBoss Cache
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Ben Wang
> Assigned To: Ben Wang
> Fix For: PojoCache
>
>
> We are seeing random failure on testSharedNodeAndElement. Here is the stack trace:
> TreeCacheAop.endTransaction():
> java.lang.RuntimeException: TreeCacheAop.endTransaction(): at org.jboss.cache.aop.TreeCacheAop.endTransaction(TreeCacheAop.java:488) at org.jboss.cache.aop.TreeCacheAop.putObject(TreeCacheAop.java:371) at org.jboss.cache.aop.TreeCacheAop.putObject(TreeCacheAop.java:323) at org.jboss.cache.aop.integrated.NetworkManagementAopTest.testSharedNodeAndElement(NetworkManagementAopTest.java:187) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)Caused by: javax.transaction.RollbackException at org.jboss.cache.transaction.DummyTransaction.commit(DummyTransaction.java:67) at org.jboss.cache.transaction.DummyBaseTransactionManager.commit(DummyBaseTransactionManager.java:60) at org.jboss.cache.aop.TreeCacheAop.endTransaction(TreeCacheAop.java:481) ... 18 more
> This is not the first time I have seen this so we will need to investigate this.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 11 months
[JBoss JIRA] Updated: (JBCACHE-658) Fast locking for mostly-read PojoCache
by Ben Wang (JIRA)
[ http://jira.jboss.com/jira/browse/JBCACHE-658?page=all ]
Ben Wang updated JBCACHE-658:
-----------------------------
Fix Version/s: 2.0.0
(was: PojoCache)
> Fast locking for mostly-read PojoCache
> --------------------------------------
>
> Key: JBCACHE-658
> URL: http://jira.jboss.com/jira/browse/JBCACHE-658
> Project: JBoss Cache
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: PojoCache
> Reporter: Nitzan Niv
> Assigned To: Ben Wang
> Fix For: 2.0.0
>
>
> The locking mechanism locks all the nodes in the path from the tree root to the modified node. If the cache contains a deep hierarchy of nodes (e.g., PojoCache that contains complex objects) and the usage of the cache
> is mostly-read the locking overhead is unnecessarilly large.
> To enable REPEATABLE_READ isolation level with minimal overhead (but with reduced update parallelism) just the tree root should be locked instead of the nodes-path. To define this policy as a new isloation level ("single"):
> Change in PessimisticLockInterceptor (line 199):
> else {
> if(isolation_level == IsolationLevel.SINGLE) {//XXX
> if (i == 0) {
> acquired=child_node.acquire(owner, lock_timeout, lock_type);
> }
> } else {
> if(lock_type == DataNode.LOCK_TYPE_WRITE && i == (treeNodeSize - 1)) {
> acquired=child_node.acquire(owner, lock_timeout, DataNode.LOCK_TYPE_WRITE);
> }
> else {
> acquired=child_node.acquire(owner, lock_timeout, DataNode.LOCK_TYPE_READ);
> }
> }//XXX
> }
> in LockStrategyFactory.java:
> if (lockingLevel == IsolationLevel.REPEATABLE_READ || lockingLevel == IsolationLevel.SINGLE) //XXX
> return new LockStrategyRepeatableRead();
> and add the "SINGLE" isolation level to IsolationLevel.java.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 11 months