You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Artem Shutak (JIRA)" <ji...@apache.org> on 2015/03/25 18:50:55 UTC

[jira] [Created] (IGNITE-592) [Test] Null can be erroneously passed to filter in optimistic transaction

Artem Shutak created IGNITE-592:
-----------------------------------

             Summary: [Test] Null can be erroneously passed to filter in optimistic transaction
                 Key: IGNITE-592
                 URL: https://issues.apache.org/jira/browse/IGNITE-592
             Project: Ignite
          Issue Type: Bug
            Reporter: Artem Shutak
            Assignee: Yakov Zhdanov
             Fix For: sprint-3


For optimsitic transaction filter is applied in GridCacheTxLocalAdapter.enlistWrite, and there are two issues:
- when put is started from backup node we pass to filter detached entry without value, so that GridCacheEntry.peek returns null even if we have value locally
- when offheap is enabled then entry is unswapped before it is passed to filter, but there is a race so that another thread can swap it again before filter is applied (GridCacheOffHeapMultiThreadedUpdateSelfTest.testPutWithFilterTx)

see GG-8118



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)