[ 
https://issues.apache.org/jira/browse/IGNITE-592?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Artem Shutak updated IGNITE-592:
--------------------------------
    Description: 
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

Next test(s) should be unmuted on TC: 
GridCacheOffHeapMultiThreadedUpdateSelfTest # testPutTxOptimistic and 
testPutxIfAbsentTxOptimistic

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


> [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
>              Labels: failedtest
>             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
> Next test(s) should be unmuted on TC: 
> GridCacheOffHeapMultiThreadedUpdateSelfTest # testPutTxOptimistic and 
> testPutxIfAbsentTxOptimistic



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

Reply via email to