ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ignite_dev2017 <rishiyag...@gmail.com>
Subject IGNITE-2766 Spring Cache Manager ReConnect Issue
Date Sun, 12 Mar 2017 01:04:58 GMT
Hi Val,

The fix which we applied as follows with SpringCacheManager - 

1) Design was to listen for ignite re connect event 
2) And clear the cache on reconnect 

See the following code below and let us know if this is helpful - 

In afterPropertiesSet - 

//Handles the reconnect event, on server crashes OR network failure, client
connects to server and
        // destroy the cache
        IgnitePredicate<DiscoveryEvent> lsnr = iEvt -> {
            LOGGER.info("Received discovery event [iEvt=" + iEvt.name() + ",
discovery=" + iEvt.shortDisplay() + ']');

            caches.keySet().forEach(key -> {
            } );

Let me know if you see any side effects with the fix.


View this message in context: http://apache-ignite-developers.2346864.n4.nabble.com/IGNITE-2766-Spring-Cache-Manager-ReConnect-Issue-tp15362.html
Sent from the Apache Ignite Developers mailing list archive at Nabble.com.

View raw message