Ok, I found the cause of the issue. It was the mismatch between the Ignite
client:
Ignition.setClientMode(true);
return Ignition.start(igniteConfiguration());
and ignite server running with XML configuration.
Which raises another question - how much in common in the configuration
Ignite client and Ignite server should have? And what would be the
consequences of not keeping them in sync?
As my Ignite server has extensive configuration for each of the cache used
with cachestore, eviction/expiry policies, etc. While my Ignite client
doesn't have anything related to the cache configuration at all, i.e. it is
simple like this:
@Bean
public IgniteConfiguration igniteConfiguration() {
final IgniteConfiguration igniteConfiguration = new
IgniteConfiguration();
final AtomicConfiguration atomicConfiguration = new
AtomicConfiguration(); // 1
atomicConfiguration.setBackups(cacheEnvironment.atomicConfigurationBackups());
// 2
igniteConfiguration.setAtomicConfiguration(atomicConfiguration); //
3
igniteConfiguration.setGridName(cacheEnvironment.gridName());
igniteConfiguration.setMetricsLogFrequency(0); // 0 - to disable
setupTcpDiscoverySpi(igniteConfiguration);
return igniteConfiguration;
}
(by adding lines 1-3 has helped to solve the issue describe in the topic of
this thread)
--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/Affinity-key-backups-mismatch-fix-affinity-key-backups-in-cache-configuration-or-set-DIGNITE-SKIP-COy-tp10305p10306.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.