Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-14700

AbstractReplicaCollection equals and hash code should throw due to conflict between order sensitive/insensitive uses

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 4.0-alpha1, 4.0
    • Legacy/Core
    • None

    Description

      AbstractReplicaCollection implements equals and hashCode in an order sensitive fashion. It's a bit ambiguous and contextual whether uses of it are actually sensitive to order. Many aren't. It turns out we don't actually use those methods in the database so rather then pick one over the other have it throw UnsupportedOperationException so someone doesn't accidentally get the wrong behavior.

      Attachments

        Issue Links

          Activity

            People

              aweisberg Ariel Weisberg
              aweisberg Ariel Weisberg
              Ariel Weisberg
              Benedict Elliott Smith
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: