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

EC2 snitch incorrectly reports regions

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 1.0.9, 1.1.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Ubuntu 10.10 64 bit Oracle Java 6

    • Severity:
      Normal

      Description

      Currently the org.apache.cassandra.locator.Ec2Snitch reports "us-west" in both the oregon and the california data centers. This is incorrect, since they are different regions.

      California => us-west-1
      Oregon => us-west-2

      wget http://169.254.169.254/latest/meta-data/placement/availability-zone returns the value "us-west-2a"

      After parsing this returns

      DC = us-west Rack = 2a

      What it should return

      DC = us-west-2 Rack = a

      This makes it possible to use multi region when both regions are in the west coast.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vijay2win@yahoo.com Vijay
                Reporter:
                tnine Todd Nine
                Authors:
                Vijay
                Reviewers:
                Brandon Williams
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: