[jboss-jira] [JBoss JIRA] Reopened: (JBCACHE-1067) Concurrent node removal detection is not working correctly in OptimisticValidatorInterceptor.java

Javier Pedrido (JIRA) jira-events at lists.jboss.org
Fri Jun 29 11:00:57 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBCACHE-1067?page=all ]

Javier Pedrido reopened JBCACHE-1067:
-------------------------------------

             
I'm getting DataVersioningException("Real node for " + fqn + " is null, and this wasn't newly created in this tx!") exceptions even without concurrent access (JBoss Cache is used as Hibernate 2nd level) cache.

So I changed OptimisticValidatorInterceptor.jar this way:

132c132
<             if (realNode == null && !workspaceNode.isCreated())
==========
>             if (realNode == null && !workspaceNode.isCreated() && workspaceNode.isDirty())
147c147
<                if (realNode.getVersion().newerThan( workspaceNode.getVersion() ))
==========
>                if (realNode != null && realNode.getVersion().newerThan( workspaceNode.getVersion() ))

I dont know is this modification is correct. Could you please take a look at it?
Thanks. Javier

> Concurrent node removal detection is not working correctly in OptimisticValidatorInterceptor.java
> -------------------------------------------------------------------------------------------------
>
>                 Key: JBCACHE-1067
>                 URL: http://jira.jboss.com/jira/browse/JBCACHE-1067
>             Project: JBoss Cache
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 1.4.1.SP3
>            Reporter: Javier Pedrido
>         Assigned To: Manik Surtani
>             Fix For: 1.4.1.SP4
>
>
> A fix similar to JBCache-1026 should be applied

-- 
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

        



More information about the jboss-jira mailing list