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

    • Type: Task
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 4.0
    • Component/s: Legacy/Core
    • Labels:
      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

              • Assignee:
                aweisberg Ariel Weisberg
                Reporter:
                aweisberg Ariel Weisberg
                Authors:
                Ariel Weisberg
                Reviewers:
                Benedict Elliott Smith
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: