Hi,

I have a ignite cluster with cache TEST created as follows:

try (Ignite ignite = Ignition.start("config/example-ignite.xml"));) {
    System.out.println(">>> Cache data streamer example started.");
    CacheConfiguration<Long, Model> cacheConfiguration = new
CacheConfiguration<>(CACHE_NAME);
    cacheConfiguration.setCacheMode(CacheMode.PARTITIONED); // Default.
    cacheConfiguration.setIndexedTypes(Long.class, Model.class);
    cacheConfiguration.setBackups(1);

...


When one of the node crashes, the cache is cleared and I see the following
log on the running nodes.

[13:12:02] Topology snapshot [ver=48, servers=12, clients=2, CPUs=136,
heap=54.0GB]

[13:23:43] Topology snapshot [ver=49, servers=11, clients=2, CPUs=136,
heap=50.0GB]
[13:25:58] Cleared all cache entries for undeployed class loader
[cacheName=TEST, undeployCnt=1079679, swapUndeployCnt=0,
clsLdr=o.a.i.i.managers.deployment.GridDeploymentClassLoader]

[13:25:58]   ^-- Cache auto-undeployment happens in SHARED deployment mode
(to turn off, switch to CONTINUOUS mode)

Could someone help me explain(or point to doc) what happened how to avoid
the cache getting cleared.

Regards,
Moiz

Reply via email to