[infinispan-dev] Rehashing on view changes
Manik Surtani
manik at jboss.org
Fri Nov 26 10:43:02 EST 2010
On 26 Nov 2010, at 15:30, Vladimir Blagojevic wrote:
> On 10-11-26 12:20 PM, Manik Surtani wrote:
>>
>>
>> On 26 Nov 2010, at 13:59, Vladimir Blagojevic wrote:
>>
>>> On 10-11-26 10:50 AM, Bela Ban wrote:
>>>> Quick question: when I have a view {A,B,C,D,E,F} at time T and then
>>>> receive 2 subsequent views within 3 seconds:
>>>>
>>>> - {A,B,C}
>>>> - {A,B,C,E,F}
>>>>
>>>> will there be 2 rehashes / rebalancings, or 1 ? Is there a delay that
>>>> can be configured for rebalancing on view changes ?
>>>
>>> 2 rehashes.
>>
>>
>> Wouldn't the second rehash request cause the first one to abort?
>>
>> Any ongoing LeaveTask is cancelled...
>>
>> https://github.com/infinispan/infinispan/blob/master/core/src/main/java/org/infinispan/distribution/DistributionManagerImpl.java#L265
>>
>>
> It is. But I would not bet my life that this cancellation will leave everything in pristine state across the cluster....
Right, but the rehash is cancelled and another rehash with the new view is started again. And this should supercede the old, part-complete rehash. Right?
--
Manik Surtani
manik at jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/infinispan-dev/attachments/20101126/17da86bc/attachment.html
More information about the infinispan-dev
mailing list