In my test, I only killed MySql DB for about 10 seconds, then restore it.
Then I checked Mysql DB, I found some data missed.
my test code as following:
for (int i = 1; i < keyCnt; i++){
orderGood2Key = new OrderGood2Key(i);
orderGood2 = new OrderGood2(i,i+keyCnt,i+keyCnt);
orderGoodCache.put(orderGood2Key, orderGood2);
}
The cache configure as following:
<bean
class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name"
value="orderGoodCache" />
<property name="atomicityMode"
value="ATOMIC" />
<property name="cacheMode"
value="PARTITIONED" />
<property name="backups" value="0" />
<property name="cacheStoreFactory"
ref="orderPojoStoreFactory" />
<property name="readThrough"
value="false" />
<property name="writeThrough"
value="true" />
<property name="writeBehindEnabled"
value="true" />
<property name="writeBehindFlushSize"
value="10240" />
<property
name="writeBehindFlushFrequency" value="5000" />
<property
name="writeBehindFlushThreadCount" value="2" />
<property name="indexedTypes">
<array>
<value>org.apache.ignite.OrderGood2Key</value>
<value>org.apache.ignite.OrderGood2</value>
</array>
</property>
</bean>
According to the data read from MySql DB, we can find that the data with ID
between 4754 to 5101 are missed.
ID order_id good_id
...
4751 10004751 10004751
4752 10004752 10004752
4753 10004753 10004753
5102 10005102 10005102
5103 10005103 10005103
5104 10005104 10005104
...
Is there anything wrong in my configure?
--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/When-writethrough-processing-Persistent-storage-failed-tp8622p8769.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.