Partitioned cache read through issue

classic Classic list List threaded Threaded
3 messages Options
raja24 raja24
Reply | Threaded
Open this post in threaded view
|

Partitioned cache read through issue

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/
raja24 raja24
Reply | Threaded
Open this post in threaded view
|

Re: Partitioned cache read through issue

any one had this issue or working fine in the cluster environment?


Thanks.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
ilya.kasnacheev ilya.kasnacheev
Reply | Threaded
Open this post in threaded view
|

Re: Partitioned cache read through issue

In reply to this post by raja24
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 <[hidden email]>:
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/