Thank you , and  we are using ignite 1.4.0 

------------------ ???????? ------------------
??????: "Alexey Goncharuk";<[email protected]>;
????????: 2016??6??3??(??????) ????1:02
??????: "user"<[email protected]>; 

????: Re: put data and then get it , but it returns null in sometimes



Hi,

Which version of Ignite are you using?


2016-06-02 21:55 GMT-07:00 ???????? <[email protected]>:
thanks for your answer, I don't use configure file, so almost we used the 
default value, only set some items as follows:


CacheConfiguration<Object, Object> cacheCfg = new 
CacheConfiguration<>("testName");
cacheCfg.setWriteSynchronizationMode(CacheWriteSynchronizationMode.FULL_SYNC);
cacheCfg.setCacheMode(CacheMode.PARTITIONED);
cacheCfg.setCacheStoreFactory(new ConfigurableCacheStoreFactory<>());
cacheCfg.setBackups(1);


there are 2 servers  and 1 client in my test;


and I alse find that invokes putAll method to put 5 records to cache, and then 
invoke cache.size() return less than 5, we expect 5;


furthermore,  we are test them in linux environment;


How can I solve this question ? 








------------------ ???????? ------------------
??????: "Denis Magda";<[email protected]>;
????????: 2016??6??3??(??????) ????12:35
??????: "user"<[email protected]>; 

????: Re: put data and then get it , but it returns null in sometimes



Hi,

Do you set CacheConfiguration.readFromBackup to ??true??? Please share full 
configuration of your cache.


??
Denis

On Jun 3, 2016, at 6:06 AM, ???????? <[email protected]> wrote:

Hi all,
     I have encountered a very strange problem?? described as follows:
     first ,  put(1, 2) to the cache in sync mode and the cache is atomic mode; 
     then, I immediately invoke get(1) in sync mode to get key=1, expect it 
returns 2;
     however,  it returns null;
    
    this question is random appearance,  but I have encountered a lot times;
    
    Is there anybody have encountered this question,  And how I can solve it ? 


   Thanks!

Reply via email to