Hello igniters!
Im fixing https://issues.apache.org/jira/browse/IGNITE-4401 In configuration of cache with name defaultNameEDUPropCache in initializeCache() there is ExpiryPolicyFactory with duration 20 seconds. In main test method after sleeping 10 seconds the entity must not be expired. So my question is the following: Is the ticket correct ? Should we close it? -- *Best Regards,* *Kuznetsov Aleksey* |
Aleksey,
Yes, it's corect. Pay attention, in the example was used TouchedExpiryPolicy with 20 seconds as parameter. This mean enteries will never expired in the example, because its touching each 10 seconds. On Mon, Apr 10, 2017 at 5:23 PM, ALEKSEY KUZNETSOV <[hidden email] > wrote: > Hello igniters! > Im fixing https://issues.apache.org/jira/browse/IGNITE-4401 > In configuration of cache with name defaultNameEDUPropCache in > initializeCache() there is ExpiryPolicyFactory with duration 20 seconds. > In main test method after sleeping 10 seconds the entity must not be > expired. So my question is the following: Is the ticket correct ? Should we > close it? > -- > > *Best Regards,* > > *Kuznetsov Aleksey* > -- Vladislav Pyatkov |
Fine. So what is the point of this ticket? What is the correct behavior of
the policy? пн, 10 апр. 2017 г. в 17:45, Vladislav Pyatkov <[hidden email]>: > Aleksey, > > Yes, it's corect. > Pay attention, in the example was used TouchedExpiryPolicy with 20 seconds > as parameter. This mean enteries will never expired in the example, because > its touching each 10 seconds. > > On Mon, Apr 10, 2017 at 5:23 PM, ALEKSEY KUZNETSOV < > [hidden email] > > wrote: > > > Hello igniters! > > Im fixing https://issues.apache.org/jira/browse/IGNITE-4401 > > In configuration of cache with name defaultNameEDUPropCache in > > initializeCache() there is ExpiryPolicyFactory with duration 20 seconds. > > In main test method after sleeping 10 seconds the entity must not be > > expired. So my question is the following: Is the ticket correct ? Should > we > > close it? > > -- > > > > *Best Regards,* > > > > *Kuznetsov Aleksey* > > > > > > -- > Vladislav Pyatkov > *Best Regards,* *Kuznetsov Aleksey* |
Ah, i see. After 1 round the entity got expired, but it should not
пн, 10 апр. 2017 г. в 17:48, ALEKSEY KUZNETSOV <[hidden email]>: > Fine. So what is the point of this ticket? What is the correct behavior of > the policy? > > пн, 10 апр. 2017 г. в 17:45, Vladislav Pyatkov <[hidden email]>: > > Aleksey, > > Yes, it's corect. > Pay attention, in the example was used TouchedExpiryPolicy with 20 seconds > as parameter. This mean enteries will never expired in the example, because > its touching each 10 seconds. > > On Mon, Apr 10, 2017 at 5:23 PM, ALEKSEY KUZNETSOV < > [hidden email] > > wrote: > > > Hello igniters! > > Im fixing https://issues.apache.org/jira/browse/IGNITE-4401 > > In configuration of cache with name defaultNameEDUPropCache in > > initializeCache() there is ExpiryPolicyFactory with duration 20 seconds. > > In main test method after sleeping 10 seconds the entity must not be > > expired. So my question is the following: Is the ticket correct ? Should > we > > close it? > > -- > > > > *Best Regards,* > > > > *Kuznetsov Aleksey* > > > > > > -- > Vladislav Pyatkov > > -- > > *Best Regards,* > > *Kuznetsov Aleksey* > *Best Regards,* *Kuznetsov Aleksey* |
In reply to this post by voipp
This is a javax cache API.
Look at the java doc about how to TouchedExpiryPolicy should be work[1]. [1]: http://static.javadoc.io/javax.cache/cache-api/1.0.0/javax/cache/expiry/TouchedExpiryPolicy.html On Mon, Apr 10, 2017 at 5:48 PM, ALEKSEY KUZNETSOV <[hidden email] > wrote: > Fine. So what is the point of this ticket? What is the correct behavior of > the policy? > > пн, 10 апр. 2017 г. в 17:45, Vladislav Pyatkov <[hidden email]>: > > > Aleksey, > > > > Yes, it's corect. > > Pay attention, in the example was used TouchedExpiryPolicy with 20 > seconds > > as parameter. This mean enteries will never expired in the example, > because > > its touching each 10 seconds. > > > > On Mon, Apr 10, 2017 at 5:23 PM, ALEKSEY KUZNETSOV < > > [hidden email] > > > wrote: > > > > > Hello igniters! > > > Im fixing https://issues.apache.org/jira/browse/IGNITE-4401 > > > In configuration of cache with name defaultNameEDUPropCache in > > > initializeCache() there is ExpiryPolicyFactory with duration 20 > seconds. > > > In main test method after sleeping 10 seconds the entity must not be > > > expired. So my question is the following: Is the ticket correct ? > Should > > we > > > close it? > > > -- > > > > > > *Best Regards,* > > > > > > *Kuznetsov Aleksey* > > > > > > > > > > > -- > > Vladislav Pyatkov > > > -- > > *Best Regards,* > > *Kuznetsov Aleksey* > -- Vladislav Pyatkov |
It appears that the second query execution returns empty
QueryCursor(ResultSet) within expiry time. But cache.get() operation returns non-null value in this time. Looks strange пн, 10 апр. 2017 г. в 17:53, Vladislav Pyatkov <[hidden email]>: > This is a javax cache API. > Look at the java doc about how to TouchedExpiryPolicy should be work[1]. > > [1]: > > http://static.javadoc.io/javax.cache/cache-api/1.0.0/javax/cache/expiry/TouchedExpiryPolicy.html > > On Mon, Apr 10, 2017 at 5:48 PM, ALEKSEY KUZNETSOV < > [hidden email] > > wrote: > > > Fine. So what is the point of this ticket? What is the correct behavior > of > > the policy? > > > > пн, 10 апр. 2017 г. в 17:45, Vladislav Pyatkov <[hidden email]>: > > > > > Aleksey, > > > > > > Yes, it's corect. > > > Pay attention, in the example was used TouchedExpiryPolicy with 20 > > seconds > > > as parameter. This mean enteries will never expired in the example, > > because > > > its touching each 10 seconds. > > > > > > On Mon, Apr 10, 2017 at 5:23 PM, ALEKSEY KUZNETSOV < > > > [hidden email] > > > > wrote: > > > > > > > Hello igniters! > > > > Im fixing https://issues.apache.org/jira/browse/IGNITE-4401 > > > > In configuration of cache with name defaultNameEDUPropCache in > > > > initializeCache() there is ExpiryPolicyFactory with duration 20 > > seconds. > > > > In main test method after sleeping 10 seconds the entity must not be > > > > expired. So my question is the following: Is the ticket correct ? > > Should > > > we > > > > close it? > > > > -- > > > > > > > > *Best Regards,* > > > > > > > > *Kuznetsov Aleksey* > > > > > > > > > > > > > > > > -- > > > Vladislav Pyatkov > > > > > -- > > > > *Best Regards,* > > > > *Kuznetsov Aleksey* > > > > > > -- > Vladislav Pyatkov > *Best Regards,* *Kuznetsov Aleksey* |
Free forum by Nabble | Edit this page |