ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Karachentsev (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IGNITE-3339) get() in explicit READ_COMMITTED transaction on OFFHEAP_TIERED cache copies data from offheap to onheap.
Date Mon, 20 Jun 2016 12:11:05 GMT

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

Dmitry Karachentsev updated IGNITE-3339:
----------------------------------------
    Description: 
On OFFHEAP_TIERED TRANSACTIONAL cache:
1. Put entry.
2. Cache size equals 1 and iterator returns one entry.
3. Open PESSIMISTIC READ_COMMITED transaction.
4. get() that value.
5. Commit transaction.
6. Cache size now equals 2 and iterator returns two identical entries.

By fast investigation was found that after put() operation value goes to offheap. After get()
operation in explicit transaction the same value appears in onheap and offheap iterators.
As a result user sees two the same entries.


https://github.com/apache/ignite/pull/817

  was:
Configure cache as OFFHEAP_TIERED .

https://github.com/apache/ignite/pull/817


> get() in explicit READ_COMMITTED transaction on OFFHEAP_TIERED cache copies data from
offheap to onheap.
> --------------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-3339
>                 URL: https://issues.apache.org/jira/browse/IGNITE-3339
>             Project: Ignite
>          Issue Type: Bug
>          Components: cache
>    Affects Versions: 1.6
>            Reporter: Dmitry Karachentsev
>             Fix For: 1.7
>
>
> On OFFHEAP_TIERED TRANSACTIONAL cache:
> 1. Put entry.
> 2. Cache size equals 1 and iterator returns one entry.
> 3. Open PESSIMISTIC READ_COMMITED transaction.
> 4. get() that value.
> 5. Commit transaction.
> 6. Cache size now equals 2 and iterator returns two identical entries.
> By fast investigation was found that after put() operation value goes to offheap. After
get() operation in explicit transaction the same value appears in onheap and offheap iterators.
As a result user sees two the same entries.
> https://github.com/apache/ignite/pull/817



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

Mime
View raw message