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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 12.1.4.Final
    • Fix Version/s: 13.0.0.Dev04
    • Component/s: Core
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            dan.berindei Dan Berindei
            Reporter:
            pferraro Paul Ferraro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: