TouchedExpiryPolicy works incorrect in some cases IGNITE-4401

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

TouchedExpiryPolicy works incorrect in some cases IGNITE-4401

voipp
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*
Reply | Threaded
Open this post in threaded view
|

Re: TouchedExpiryPolicy works incorrect in some cases IGNITE-4401

V.Pyatkov
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
Reply | Threaded
Open this post in threaded view
|

Re: TouchedExpiryPolicy works incorrect in some cases IGNITE-4401

voipp
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*
Reply | Threaded
Open this post in threaded view
|

Re: TouchedExpiryPolicy works incorrect in some cases IGNITE-4401

voipp
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*
Reply | Threaded
Open this post in threaded view
|

Re: TouchedExpiryPolicy works incorrect in some cases IGNITE-4401

V.Pyatkov
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
Reply | Threaded
Open this post in threaded view
|

Re: TouchedExpiryPolicy works incorrect in some cases IGNITE-4401

voipp
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*