[ https://issues.apache.org/jira/browse/IGNITE-3699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15457320#comment-15457320 ]
Amir Akhmedov commented on IGNITE-3699: --------------------------------------- [~vkulichenko], thank you for your comments. 1. Totally agree with you, will update the PR for this case. 2. In case of Atomic cache {code}GridCacheAdapter.getAllAsync0{code} is called. In this method if cache does not have a specified key it loads the value from store and creates a cache entry for the key-value pair. At this place I'm setting the TTL for this cache entry. > 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 > Fix For: 1.8 > > 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)