[jbosscache-issues] [JBoss JIRA] Assigned: (JBCACHE-1519) ClassCastException in ReadCommittedNode.markForUpdate()

Galder Zamarreno (JIRA) jira-events at lists.jboss.org
Wed Jul 8 13:48:51 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBCACHE-1519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Galder Zamarreno reassigned JBCACHE-1519:
-----------------------------------------

    Assignee: Galder Zamarreno  (was: Manik Surtani)


> ClassCastException in ReadCommittedNode.markForUpdate()
> -------------------------------------------------------
>
>                 Key: JBCACHE-1519
>                 URL: https://jira.jboss.org/jira/browse/JBCACHE-1519
>             Project: JBoss Cache
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Locking, Transactions
>    Affects Versions: 3.1.0.GA
>            Reporter: Krzysztof Sobolewski
>            Assignee: Galder Zamarreno
>         Attachments: ClassCastExceptionTest.java
>
>
> The exception is deterministic (test case is attached) and even easy to reproduce.
> Prerequisites:
> - isolation level READ_COMMITTED
> - lockParentForChildInsertRemove == true
> - transactions (not sure about this one)
> The test attached most probably isn't minimal, but it's small enough (it's almost exactly what my application does). The test adds a small tree in one transaction then in another transaction removes it and adds again, and it does both of those in a loop. The exception is in the *second* iteration.
> The exception occurs because the line 121 of ReadCommittedNode expects the backup of node to be NodeReference, but somehow it's an UnversionedNode instead. This node is retrieved from the data container, where the child is being added as an UnversionedNode by MVCCNodeHelper line 338. When lockParentForChildInsertRemove is false this fragment is never executed and there is no exception.

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

        



More information about the jbosscache-issues mailing list