ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denis Magda <dma...@gridgain.com>
Subject Re: Failed to find atomic long with given name
Date Mon, 02 Nov 2015 09:15:28 GMT
Hi,

IgniteAtomicLong and other atomics or data structures are implemented using
caches in Ignite.

By default IgniteAtomicLong will be backed by a partitioned cache that
doesn't have a backup.
This should lead to the exception you see. So when you kill the first node
that held the atomic long there is no node left that has info on your atomic
long.

To fix this you should provide a special AtomicConfiguration like this

AtomicConfiguration atomicCfg = new AtomicConfiguration();
        
// Set at least one backup for partitioned cache
atomicCfg.setCacheMode(CacheMode.PARTITIONED);
atomicCfg.setBackups(1);
        
// or use the cache in the replicated mode.
// atomicCfg.setCacheMode(CacheMode.REPLICATED);
        
IgniteConfiguration cfg = new IgniteConfiguration();
        
cfg.setAtomicConfiguration(atomicCfg);
        
Ignition.start(cfg);


Please try to set a specific AtomicConfiguration and let us know about the
result.

Regards,
Denis



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Failed-to-find-atomic-long-with-given-name-tp1800p1806.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message