ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "往事如烟" <honglipi...@qq.com>
Subject 回复: put data and then get it , but it returns null in sometimes
Date Fri, 03 Jun 2016 04:55:00 GMT
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.setCacheStoreFactory(new ConfigurableCacheStoreFactory<>());

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";<dmagda@gridgain.com>;
发送时间: 2016年6月3日(星期五) 中午12:35
收件人: "user"<user@ignite.apache.org>; 

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


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


On Jun 3, 2016, at 6:06 AM, 往事如烟 <hongliping7@qq.com> 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 ? 

View raw message