Hi All,
I am unable to start a new  node (3rd node) which went down some days ago
having 3 node clusters with  CacheMode.Partitioned and the 3rd node went
down and unable to join back. Got below error while starting the grid

Got exception while starting(will rollback startup routine).
IgniteCheckException: Affinity key backups mismatch [cachename=TestModel,
localaffinityKeyBackups=0, remoteaffinityKeyBackups=2 ....] fix cache
configuration or set system property
-DIGNITE_SKIP_CONFIGURATION_CONSISTENCY_CHECK=true

Server node configuration as below in all 3 servers(IP address masked)
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:util="http://www.springframework.org/schema/util";
       xsi:schemaLocation="http://www.springframework.org/schema/beans

http://www.springframework.org/schema/beans/spring-beans.xsd
                           http://www.springframework.org/schema/util

http://www.springframework.org/schema/util/spring-util.xsd";>
  <bean id="expireCache"
class="org.apache.ignite.configuration.CacheConfiguration" abstract="true">
    <property name="expiryPolicyFactory">
        <bean class="javax.cache.expiry.CreatedExpiryPolicy"
factory-method="factoryOf">
            <constructor-arg>
                <bean class="javax.cache.expiry.Duration">
                    <constructor-arg value="MINUTES"/>
                    <constructor-arg value="60"/>
                </bean>
            </constructor-arg>
       </bean>
    </property>
  </bean>
  <bean class="org.apache.ignite.configuration.IgniteConfiguration">
    <property name="clientMode" value="false"/>
    <property name="clientFailureDetectionTimeout" value="120000"/>
    <property name="igniteInstanceName" value="Prod_DynamicGrid"/>
    <property name="longQueryWarningTimeout" value="4000"/>
    <property name="failureDetectionTimeout" value="120000"/>
    <property name="localHost" value="0.0.0.1"/>
    <property name="segmentationPolicy" value="RESTART_JVM"/>
    <property name="segmentCheckFrequency" value="20000"/>
    <property name="segmentationResolveAttempts" value="10"/>
    <property name="discoverySpi">
      <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
        <property name="localPort" value="63500"/>
        <property name="ipFinder">
          <bean
class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
            <property name="addresses">
              <list>
                        <value>0.0.0.1:63500</value>
                        <value>0.0.0.2:63500</value>
                        <value>0.0.0.3:63500</value>
              </list>
            </property>
          </bean>
        </property>
      </bean>
    </property>
   <property name="cacheConfiguration">
                        <list>
                                <bean parent="expireCache">
                                        <property name="name"
value="TestModel1"/>
                                </bean>
                                <bean parent="expireCache">
                                        <property name="name"
value="TestModel2"/>
                                </bean>
                                <bean parent="expireCache">
                                        <property name="name"
value="TestModel3"/>
                                </bean>
                                <bean parent="expireCache">
                                        <property name="name"
value="TestModel4"/>
                                </bean>
                                <bean parent="expireCache">
                                        <property name="name"
value="TestModel5"/>
                                </bean>
                        </list>
                </property>
        <property name="dataStorageConfiguration">
            <bean
class="org.apache.ignite.configuration.DataStorageConfiguration">
                <property name="defaultDataRegionConfiguration">
                    <bean
class="org.apache.ignite.configuration.DataRegionConfiguration">
                        <property name="name" value="Dynamic_Data_Region"/>
                        <property name="initialSize" value="#{1L * 1024 *
1024 * 1024}"/>
                        <property name="maxSize" value="#{18L * 1024 * 1024
* 1024}"/>
                        <property name="pageEvictionMode"
value="RANDOM_2_LRU"/>
                        <property name="evictionThreshold" value="0.7"/>
                        <property name="emptyPagesPoolSize" value="65636"/>
                    </bean>
                </property>
            </bean>
        </property>
        <property name="communicationSpi">
        <bean
class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">
            <property name="sharedMemoryPort" value="-1"/>
            <property name="localPort" value="63605"/>
        </bean>
    </property>
  </bean>
</beans>

Thanks & Regards,
Charlin

Reply via email to