Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-1077

Multiple leaves are not handled correctly with DIST

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.0.0.CR4, 5.0.0.FINAL
    • 4.2.1.FINAL
    • Core
    • None
    • High

      When multiple caches are leaving at the same time(i.e. the diff between jgroups views is more than one address), Infinispan ends up with an inconsistent hash function: it is aware about nodes that are no longer present in the cluster.
      The root cause of the problem is in DistributionManagerImpl.rehash(...):

      • the list of leavers is determined as follows:
        Address leaver = MembershipArithmetic.getMemberLeft(oldMembers, newMembers);
      • this method always assumes a single leaver, but there can be many.

      Unit test attached.

            dberinde@redhat.com Dan Berindei (Inactive)
            mircea.markus Mircea Markus (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: