You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Kanunnikov Pavel (JIRA)" <ji...@apache.org> on 2019/08/02 08:23:00 UTC
[jira] [Updated] (IGNITE-12034) containsKey() does not work correct
in some cases
[ https://issues.apache.org/jira/browse/IGNITE-12034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kanunnikov Pavel updated IGNITE-12034:
--------------------------------------
Description:
{{containsKey()}} method does not work correct in some cases. Steps to reproduce:
# create cache with {{LOCAL}} cache mode and {{TRANSACTIONAL}} atomicity mode
# start transaction
# put some entry to the cache
# commit and close transaction
# start another new transaction
# try to call {{containsKey()}} for the existing entry (which has been added at step 3)
# check result. It will be {{false}}. But entry with such key exists! We can also get it by {{get() method}}.
# commit/rollback and close transaction
If cache mode is not {{LOCAL}} ({{PARTITIONED}} or {{REPLICATED}}) all works correct.
Bug checked in versions: {{2.6.0}}, {{2.7.0}}, {{2.7.5}}.
Simple reproducing example attached to this issue.
was:
{{containsKey()}} method does not work correct in some cases. Steps to reproduce:
# create cache with {{CacheMode.LOCAL}} cache mode and {{CacheAtomicityMode.TRANSACTIONAL}} atomicity mode
# start transaction
# put some entry to the cache
# commit and close transaction
# start another new transaction
# try to call {{containsKey()}} for the existing entry (which has been added at step 3)
# check result. It will be {{false}}. But entry with such key exists! We can also get it by {{get() method}}.
# commit/rollback and close transaction
Bug checked in versions: {{2.6.0}}, {{2.7.0}}, {{2.7.5}}.
Simple reproducing example attached to this issue.
> containsKey() does not work correct in some cases
> -------------------------------------------------
>
> Key: IGNITE-12034
> URL: https://issues.apache.org/jira/browse/IGNITE-12034
> Project: Ignite
> Issue Type: Bug
> Affects Versions: 2.7.5
> Reporter: Kanunnikov Pavel
> Priority: Major
> Attachments: reproducing_example.java
>
>
> {{containsKey()}} method does not work correct in some cases. Steps to reproduce:
> # create cache with {{LOCAL}} cache mode and {{TRANSACTIONAL}} atomicity mode
> # start transaction
> # put some entry to the cache
> # commit and close transaction
> # start another new transaction
> # try to call {{containsKey()}} for the existing entry (which has been added at step 3)
> # check result. It will be {{false}}. But entry with such key exists! We can also get it by {{get() method}}.
> # commit/rollback and close transaction
> If cache mode is not {{LOCAL}} ({{PARTITIONED}} or {{REPLICATED}}) all works correct.
> Bug checked in versions: {{2.6.0}}, {{2.7.0}}, {{2.7.5}}.
> Simple reproducing example attached to this issue.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)