Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-751

ReplicatedHashMap state becomes inconsistent after merge

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • 2.6.3, 2.7
    • 2.6.3
    • None

      ReplicatedHashMap does not correctly handle state transfer during a merge, leaving members with inconsistent map entries.

      Specifically, on receipt of a MergeView no attempt is made to reconcile the state of all members. Each member retains the entries it had while partitioned, though all members will correctly apply subsequent mutations.

      I've attached a unit test that demonstrates the bug and also a patch that corrects the behavior (specifically, by calling getState() on the coordinator of each subview on receipt of a MergeView).

        1. ReplicatedHashMapMergeTest.java
          3 kB
          Robert Newson
        2. ReplicatedHashMap.patch
          2 kB
          Robert Newson

              rhn-engineering-bban Bela Ban
              rnewson_jira Robert Newson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: