You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by ignite_user2016 <ri...@gmail.com> on 2019/02/18 22:38:44 UTC

cache expiry issue

we use ignite with spring boot application and seeing issue in production
where few cache entries are not being expired. our configuration is based on
XML, sample configuration as follows - 


<bean id="expiry12Policy" class="javax.cache.expiry.CreatedExpiryPolicy"
factory-method="factoryOf">
        <constructor-arg>
            <bean class="javax.cache.expiry.Duration">
                <constructor-arg value="SECONDS"/>
                <constructor-arg value="180"/>
            </bean>
        </constructor-arg>
    </bean>

we apply this expiry policy on cache configuration as follows - 

<bean class="org.apache.ignite.configuration.CacheConfiguration">
                    <property name="cacheMode" value="PARTITIONED"/>
                    <property name=&quot;name&quot;
value=&quot;&lt;b>#{{cacheName}}*"/>
                    <property name="expiryPolicyFactory"
ref="expiry12Policy"/>
                </bean>



So I have a questions as follows -
  - Does this configuration looks OK OR we are missing something here ? 
  - why we issues with few cache entries ? 
  - Is there any way we can have a hook to expiry ? OR we can evict the
cache using API ? 
 
       



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: cache expiry issue

Posted by Scott Feldstein <sc...@gmail.com>.
I ran into a expiry issue using 2.6.0 that was fixed in 2.7.0.

What version are you on?
On Tue, Feb 19, 2019 at 07:35 ignite_user2016 <ri...@gmail.com> wrote:

> any reply please ?
>
> we have 2 node cluster and we are only seeing expiry issues with few cache
> entries which never gets expired unless we restart the servers OR clear the
> cache ?
>
> The clearing out cache works and removes the expiry cache values.
>
> appreciate all help here ..
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Re: cache expiry issue

Posted by ignite_user2016 <ri...@gmail.com>.
any reply please ? 

we have 2 node cluster and we are only seeing expiry issues with few cache
entries which never gets expired unless we restart the servers OR clear the
cache ? 

The clearing out cache works and removes the expiry cache values.

appreciate all help here ..



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/