[infinispan-dev] ISPN-263 and handling partitions

Manik Surtani msurtani at redhat.com
Mon Apr 22 12:46:29 EDT 2013


On 22 Apr 2013, at 16:46, Mircea Markus <mmarkus at redhat.com> wrote:

> would the read only partition be wiped out and repopulated during merge? 

Naively, yes.  But as Dan pointed out, if a key K only exists in the minor partition (primary and backups), then just wiping the minor partition nodes will result in data loss.  

A more sophisticated algorithm would just wipe keys in the minor partition that also exist in the major partition.

An *even* more sophisticated algorithm would only wipe keys in the minor partition that also exist in the major partition, that have changed since the partition occurred.  Hence the vector clocks.

- M

--
Manik Surtani
manik at jboss.org
twitter.com/maniksurtani

Platform Architect, JBoss Data Grid
http://red.ht/data-grid




More information about the infinispan-dev mailing list