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

ConsistentHash.getPrimarySegmentsForOwner(Address) throws an IAE if the address is not a member

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 13.0.0.Final, 9.4.26.Final
    • 12.1.4.Final, 9.4.25.Final
    • Core
    • None

      Currently, ConsistentHash.getPrimarySegmentsForOwner(Address) throws an IllegalArgumentException if the address is not a member of the consistent hash.

      Following a partition -> merge, a member can receive a topology change event that includes an old consistent hash for which the local address is not a member.  When querying the consistent hash, I would expect the local member should not own any segments in the old hash, and thus getPrimarySegmentsForOwner(...) should return an empty set.  There's nothing "illegal" about the address, thus throwing an IAE is not really appropriate, IMO.

              dberinde@redhat.com Dan Berindei (Inactive)
              pferraro@redhat.com Paul Ferraro
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: