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

re-organize endpointsnitch implementations

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 0.7 beta 1
    • None
    • None

    Description

      I think the EPS implementations should look like this:

      IEndPointSnitch: rename to IEndpointSnitch (lowercase P), otherwise fine as it is
      SimpleSnitch: new default snitch. Implement IEPS directly, with sorting as no-ops.
      AbstractEndpointSnitch: rename to AbstractRackAwareSnitch; replace isOnSameRack and isInSameDataCenter with getRack and getDatacenter (replacing getLocation).
      EndPointSnitch: rename to RackInferringSnitch
      PropertyFileEndpointSnitch: rename to PropertyFileSnitch, move from contrib to src
      DatacenterEndpointSnitch: remove (redundant wrt PFS). "quorum factor per DC" needs to go in the ReplicationStrategy, not the snitch.

      The patch sequence looks like:

      01: perform renames of IEPS, AES, EPS, and PFES
      02: add SS and make method changes to ARAS [was AES]
      Separate ticket: DatacenterReplicationStrategy code changes

      Attachments

        1. 994.txt
          17 kB
          Jonathan Ellis

        Activity

          People

            erickt Erick Tryzelaar
            jbellis Jonathan Ellis
            Erick Tryzelaar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: