Hello!

How do you load data?

loadCache would talk to database from both nodes, so if you only saw it on
one node, it's possible that only half of data was loaded from DB.

Regards,
-- 
Ilya Kasnacheev


пт, 2 авг. 2019 г. в 19:10, raja24 <[email protected]>:

> Hi Folks,
>
> I have implemented cache read through and working fine with single node.
> I'm trying to test with two nodes cluster and didn't working for backup
> data
> concept.
> My test case is as below
>
> - I have started two server nodes
> - Data is loaded into one server node(seeing DB activity logs in the server
> console) and able to retrieve the cache. Then stopped this server node
> - Another node is still running
> -Trying to get the cache data and this server node is  again calling to
> Database instead of getting it from cached data
>
> please advise for this issue. My configuration is as below
>
> <bean class="org.apache.ignite.configuration.CacheConfiguration">
>                                         <property name="name"
> value="reference-data-cache"></property>
>                                         <property name="cacheMode"
> value="PARTITIONED"/>
>                                         <property name="backups"
> value="1"/>
>                     <property name="atomicityMode" value="ATOMIC"/>
>
>
>                                         <property name="readThrough"
> value="true"></property>
>                                         <property name="writeThrough"
> value="true"></property>
>
>                                         <property name="cacheStoreFactory">
>                                                 <bean
> class="javax.cache.configuration.FactoryBuilder"
> factory-method="factoryOf">
>                                                         <constructor-arg
> value="org.test.IgniteCacheRead"></constructor-arg>
>                                                 </bean>
>                                         </property>
>                            </bean>
>
>
>
> Thanks,
> Raja
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Reply via email to