ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Welly Tambunan <if05...@gmail.com>
Subject Re: Behaviour on Partition when Node is down
Date Wed, 23 Dec 2015 08:03:17 GMT
Hi Denis,

Thanks a lot. This works great !

Cheers

On Wed, Dec 23, 2015 at 2:32 PM, Denis Magda <dmagda@gridgain.com> wrote:

> He Welly,
>
> By default number of backups is equal to 0.
> Change this default value using CacheConfiguration.setBackups(...) methods.
>
> After that everything should work fine in your scenario.
>
> Regards,
> Denis
>
>
> On 12/23/2015 10:22 AM, Welly Tambunan wrote:
>
> Hi All,
>
> I'm just trying a scenario in my local machine using IDE on put get the
> value from cache.
>
> First i run a single node for writing the value into cache. With this
> configuration.
>
> val cacheConfig = new CacheConfiguration[SeriesKey, TimeSeries]("time-series")
> cacheConfig.setCacheMode(CacheMode.PARTITIONED)
> cacheConfig.setIndexedTypes(classOf[SeriesKey], classOf[TimeSeries])
> val cfg = new IgniteConfiguration()
> cfg.setCacheConfiguration(cacheConfig)
>
> I insert 10 values into the cache. After that i run the second node that read the data
from cache. It's run fine for the first time. It return ALL the values.
>
> But after i stop the second node and try to get all values, some value is missing.
>
> My guess that when the second node starting at the first time, it rebalance the data.
Then second node offline and destroy some of the data.
>
>  However how can this happen as i have already set my CacheMode as PARTITIONED. I suppose
that it will stay on first node ?
>
>  Any explanation will be really appreciated.
>
> Cheers
> --
> Welly Tambunan
> Triplelands
>
> http://weltam.wordpress.com
> http://www.triplelands.com <http://www.triplelands.com/blog/>
>
>
>


-- 
Welly Tambunan
Triplelands

http://weltam.wordpress.com
http://www.triplelands.com <http://www.triplelands.com/blog/>

Mime
View raw message