You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Amir Akhmedov (JIRA)" <ji...@apache.org> on 2016/11/28 20:41:58 UTC

[jira] [Comment Edited] (IGNITE-3699) CreatedExpiryPolicy doesn't work if entry is loaded from store

    [ https://issues.apache.org/jira/browse/IGNITE-3699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15703061#comment-15703061 ] 

Amir Akhmedov edited comment on IGNITE-3699 at 11/28/16 8:41 PM:
-----------------------------------------------------------------

Hi Semen,

I updated PR with corresponding changes:

1. Switched JDK to version 7 and ran TeamCity tests. Some of them are failing but from test's history I see that they also failing on master

2. Now {{getAllAsync0}} calculates the ttl and passes it to {{versionedValue}}

3. The change in GridDhtTxPrepareFuture was done to fix IGNITE-821. But I realized that it's not correct fix and I reverted back the changes.

Please let me know if you any comments

Thanks.


was (Author: aakhmedov):
Hi Semen,

I update PR with corresponding changes:

1. Switched JDK to version 7 and ran TeamCity tests. Some of them are failing but from test's history I see that they also failing on master

2. Now {{getAllAsync0}} calculates the ttl and passes it to {{versionedValue}}

3. The change in GridDhtTxPrepareFuture was done to fix IGNITE-821. But I realized that it's not correct fix and I reverted back the changes.

Please let me know if you any comments

Thanks.

> CreatedExpiryPolicy doesn't work if entry is loaded from store
> --------------------------------------------------------------
>
>                 Key: IGNITE-3699
>                 URL: https://issues.apache.org/jira/browse/IGNITE-3699
>             Project: Ignite
>          Issue Type: Bug
>          Components: cache
>    Affects Versions: 1.7
>            Reporter: Valentin Kulichenko
>            Assignee: Amir Akhmedov
>            Priority: Critical
>             Fix For: 2.0
>
>         Attachments: LoadWithExpiryTest.java
>
>
> According to JCache spec, {{ExpiryPolicy.getExpiryForCreation()}} must be triggered on {{get()}} operation if the entry is loaded from the store. Currently this is not happening.
> Test reproducing the issue is attached.



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