[JBoss JIRA] Created: (JBCACHE-1078) Race condition when adding an object to PojoCache while another thread may read that object
by Vincent Marquez (JIRA)
Race condition when adding an object to PojoCache while another thread may read that object
-------------------------------------------------------------------------------------------
Key: JBCACHE-1078
URL: http://jira.jboss.com/jira/browse/JBCACHE-1078
Project: JBoss Cache
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: PojoCache
Affects Versions: 2.0.0.CR1, 2.0.0.BETA2, 2.0.0.BETA1
Reporter: Vincent Marquez
Assigned To: Jason T. Greene
When adding an object to PojoCache, AdvisedPojoHandler attaches a CachedFieldInterceptor to the advised object being added.(line 125) It does this before it adds the object to the actual Cache. If another thread reads this object in between the time the CachedFieldInterceptor is added and the object is inserted into the cache, (line 178) an exception will be thrown in the Reading thread:org.jboss.cache.pojo.PojoCacheAlreadyDetachedException: pojo: class org.jboss.cache.pojo.test.Person has possibly been detached remotely.
--
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
17 years, 9 months
[JBoss JIRA] Created: (JBCACHE-1049) Store nested object references as node map values
by Jason T. Greene (JIRA)
Store nested object references as node map values
-------------------------------------------------
Key: JBCACHE-1049
URL: http://jira.jboss.com/jira/browse/JBCACHE-1049
Project: JBoss Cache
Issue Type: Task
Security Level: Public (Everyone can see)
Reporter: Jason T. Greene
Assigned To: Manik Surtani
Fix For: 2.0.0.GA
Currently an object reference is created as a sub node with a reference to another internal node
like this:
/__JBossInternal__/person/test1/_ID_/3j001-m1nqj2-f1gyfwkz-1-f1gyfwmw-3/address
PojoReferebce -> /__JBossInternal__/person/test1/_ID_/3j001-m1nqj2-f1gyfwkz-1-f1gyfwsn-b
This can be simplified to just an attribute on the containing object that contains the reference. Also, this will simplify notification handling, since we can easily determine get/set operations on the field.
--
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
17 years, 9 months