You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Todd Nine (Created) (JIRA)" <ji...@apache.org> on 2012/03/09 00:27:57 UTC
[jira] [Created] (CASSANDRA-4026) EC2 snitch incorrect reports
regions
EC2 snitch incorrect reports regions
------------------------------------
Key: CASSANDRA-4026
URL: https://issues.apache.org/jira/browse/CASSANDRA-4026
Project: Cassandra
Issue Type: Bug
Components: Core
Affects Versions: 1.0.8
Environment: Ubuntu 10.10 64 bit Oracle Java 6
Reporter: Todd Nine
Priority: Critical
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 perform a multi data center in both the west coast data centers.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CASSANDRA-4026) EC2 snitch incorrectly reports
regions
Posted by "Vijay (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13225693#comment-13225693 ]
Vijay commented on CASSANDRA-4026:
----------------------------------
I ran into this a while ago. But the problem is that we cannot change the settings on the current live clusters which uses Ec2MultiregionSnitch or Ec2Snitch without taking a downtime. (If we change EC2Snitch/Ec2Multiregion snitch, we also need to change the schema for the existing cluster).
Option 1: Leave the existing snitch as it is and add a new snitch.
Option 2: Parse for us-west-1 as us-west and parse us-west-2 as us-west2, as us-west-2 is fairly new it wont affect a lot of us?
Brandon, Thoughts?
> EC2 snitch incorrectly reports regions
> --------------------------------------
>
> Key: CASSANDRA-4026
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4026
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.0.8
> Environment: Ubuntu 10.10 64 bit Oracle Java 6
> Reporter: Todd Nine
> Assignee: Vijay
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CASSANDRA-4026) EC2 snitch incorrectly reports
regions
Posted by "Vijay (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13225692#comment-13225692 ]
Vijay commented on CASSANDRA-4026:
----------------------------------
I ran through it a while ago. But the problem is that we cannot change the settings on the current live clusters which uses Ec2MultiregionSnitch or Ec2Snitch without taking a downtime. (If we change EC2Snitch/Ec2Multiregion snitch, we also need to change the schema for the existing cluster).
Option 1: Leave the existing snitch as it is and add a new snitch.
Option 2: Parse for us-west-1 as us-west and parse us-west-2 as us-west2, as us-west-2 is fairly new it wont affect a lot of us?
Brandon, Thoughts?
> EC2 snitch incorrectly reports regions
> --------------------------------------
>
> Key: CASSANDRA-4026
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4026
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.0.8
> Environment: Ubuntu 10.10 64 bit Oracle Java 6
> Reporter: Todd Nine
> Assignee: Vijay
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CASSANDRA-4026) EC2 snitch incorrectly reports
regions
Posted by "Brandon Williams (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brandon Williams updated CASSANDRA-4026:
----------------------------------------
Fix Version/s: 1.1.0
1.0.9
> EC2 snitch incorrectly reports regions
> --------------------------------------
>
> Key: CASSANDRA-4026
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4026
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.0.8
> Environment: Ubuntu 10.10 64 bit Oracle Java 6
> Reporter: Todd Nine
> Assignee: Vijay
> Fix For: 1.0.9, 1.1.0
>
> Attachments: 0001-CASSANDRA-4026.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CASSANDRA-4026) EC2 snitch incorrect reports
regions
Posted by "Todd Nine (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Todd Nine updated CASSANDRA-4026:
---------------------------------
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.
was:
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 perform a multi data center in both the west coast data centers.
> EC2 snitch incorrect reports regions
> ------------------------------------
>
> Key: CASSANDRA-4026
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4026
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.0.8
> Environment: Ubuntu 10.10 64 bit Oracle Java 6
> Reporter: Todd Nine
> Priority: Critical
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CASSANDRA-4026) EC2 snitch incorrectly reports
regions
Posted by "Todd Nine (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Todd Nine updated CASSANDRA-4026:
---------------------------------
Summary: EC2 snitch incorrectly reports regions (was: EC2 snitch incorrect reports regions)
> EC2 snitch incorrectly reports regions
> --------------------------------------
>
> Key: CASSANDRA-4026
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4026
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.0.8
> Environment: Ubuntu 10.10 64 bit Oracle Java 6
> Reporter: Todd Nine
> Priority: Critical
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CASSANDRA-4026) EC2 snitch incorrectly reports
regions
Posted by "Todd Nine (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13225698#comment-13225698 ]
Todd Nine commented on CASSANDRA-4026:
--------------------------------------
Could we create a new snitch that corrects the problem and deprecate the existing snitches? This way people can migrate if they choose to, or keep the old snitches if it does not affect them.
> EC2 snitch incorrectly reports regions
> --------------------------------------
>
> Key: CASSANDRA-4026
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4026
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.0.8
> Environment: Ubuntu 10.10 64 bit Oracle Java 6
> Reporter: Todd Nine
> Assignee: Vijay
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CASSANDRA-4026) EC2 snitch incorrectly reports
regions
Posted by "Vijay (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vijay updated CASSANDRA-4026:
-----------------------------
Attachment: 0001-CASSANDRA-4026.patch
>>> This is doable though if you're willing to repair afterwards.
The problem is that StorageProxy will start to write the data to the nodes which are not suppose to have the data (During upgrade, and restart takes a while)... hence after recovery they will not be able to be recovered via repair (Lets say Node A, B, C, D if B and C are upgraded A will start to write the data to D for thinking it as this datacenters replica).
>>> it's definitely a hack, but only appending the number to the DC if > 1 might be the least painful for existing users.
Agree, and attached patch does this.
BTW: The attached patch can break after we AWS has 24 AZ's which is highly unlikely but i will create a ticket requesting for API for Regions instead of AZ.
> EC2 snitch incorrectly reports regions
> --------------------------------------
>
> Key: CASSANDRA-4026
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4026
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.0.8
> Environment: Ubuntu 10.10 64 bit Oracle Java 6
> Reporter: Todd Nine
> Assignee: Vijay
> Attachments: 0001-CASSANDRA-4026.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CASSANDRA-4026) EC2 snitch incorrectly reports
regions
Posted by "Vijay (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vijay resolved CASSANDRA-4026.
------------------------------
Resolution: Fixed
Committed to trunk and 1.0, Thanks!
> EC2 snitch incorrectly reports regions
> --------------------------------------
>
> Key: CASSANDRA-4026
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4026
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.0.8
> Environment: Ubuntu 10.10 64 bit Oracle Java 6
> Reporter: Todd Nine
> Assignee: Vijay
> Attachments: 0001-CASSANDRA-4026.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CASSANDRA-4026) EC2 snitch incorrectly reports
regions
Posted by "Vijay (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vijay updated CASSANDRA-4026:
-----------------------------
Reviewer: brandon.williams
> EC2 snitch incorrectly reports regions
> --------------------------------------
>
> Key: CASSANDRA-4026
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4026
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.0.8
> Environment: Ubuntu 10.10 64 bit Oracle Java 6
> Reporter: Todd Nine
> Assignee: Vijay
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CASSANDRA-4026) EC2 snitch incorrectly reports
regions
Posted by "Brandon Williams (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brandon Williams updated CASSANDRA-4026:
----------------------------------------
Priority: Major (was: Critical)
> EC2 snitch incorrectly reports regions
> --------------------------------------
>
> Key: CASSANDRA-4026
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4026
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.0.8
> Environment: Ubuntu 10.10 64 bit Oracle Java 6
> Reporter: Todd Nine
> Assignee: Vijay
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CASSANDRA-4026) EC2 snitch incorrectly reports
regions
Posted by "Vijay (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vijay updated CASSANDRA-4026:
-----------------------------
Comment: was deleted
(was: I ran through it a while ago. But the problem is that we cannot change the settings on the current live clusters which uses Ec2MultiregionSnitch or Ec2Snitch without taking a downtime. (If we change EC2Snitch/Ec2Multiregion snitch, we also need to change the schema for the existing cluster).
Option 1: Leave the existing snitch as it is and add a new snitch.
Option 2: Parse for us-west-1 as us-west and parse us-west-2 as us-west2, as us-west-2 is fairly new it wont affect a lot of us?
Brandon, Thoughts?
)
> EC2 snitch incorrectly reports regions
> --------------------------------------
>
> Key: CASSANDRA-4026
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4026
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.0.8
> Environment: Ubuntu 10.10 64 bit Oracle Java 6
> Reporter: Todd Nine
> Assignee: Vijay
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CASSANDRA-4026) EC2 snitch incorrectly reports
regions
Posted by "Vijay (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13225710#comment-13225710 ]
Vijay commented on CASSANDRA-4026:
----------------------------------
I am ok with deprecating it, but the problem is unless the users have a way out of this we cannot remove it.
> EC2 snitch incorrectly reports regions
> --------------------------------------
>
> Key: CASSANDRA-4026
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4026
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.0.8
> Environment: Ubuntu 10.10 64 bit Oracle Java 6
> Reporter: Todd Nine
> Assignee: Vijay
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CASSANDRA-4026) EC2 snitch incorrectly reports
regions
Posted by "Brandon Williams (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13227733#comment-13227733 ]
Brandon Williams commented on CASSANDRA-4026:
---------------------------------------------
bq. hence after recovery they will not be able to be recovered via repair
One replica will always be in the right spot so you can repair.
bq. BTW: The attached patch can break after we AWS has 24 AZ's which is highly unlikely but i will create a ticket requesting for API for Regions instead of AZ.
That would be great. Unfortunately when we have that, we'll still have to munge the name (and rack names) to be backwards compatible :(
This ticket makes me sad, but +1.
> EC2 snitch incorrectly reports regions
> --------------------------------------
>
> Key: CASSANDRA-4026
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4026
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.0.8
> Environment: Ubuntu 10.10 64 bit Oracle Java 6
> Reporter: Todd Nine
> Assignee: Vijay
> Attachments: 0001-CASSANDRA-4026.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CASSANDRA-4026) EC2 snitch incorrectly reports
regions
Posted by "Brandon Williams (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13225711#comment-13225711 ]
Brandon Williams commented on CASSANDRA-4026:
---------------------------------------------
bq. If we change EC2Snitch/Ec2Multiregion snitch, we also need to change the schema for the existing cluster
Not the schema per se, but the datacenter name. This is doable though if you're willing to repair afterwards. Another option is to switch an entire DC's snitch at a time.
bq. Option 1: Leave the existing snitch as it is and add a new snitch.
Ugh, that will cause tremendous confusing for new users. It would however be nice to get rid of this wart at some point.
bq. Option 2: Parse for us-west-1 as us-west and parse us-west-2 as us-west2, as us-west-2 is fairly new it wont affect a lot of us?
There aren't a lot good options here, I'm not sure how I feel about this one since it's definitely a hack, but only appending the number to the DC if > 1 might be the least painful for existing users.
> EC2 snitch incorrectly reports regions
> --------------------------------------
>
> Key: CASSANDRA-4026
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4026
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.0.8
> Environment: Ubuntu 10.10 64 bit Oracle Java 6
> Reporter: Todd Nine
> Assignee: Vijay
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (CASSANDRA-4026) EC2 snitch incorrectly reports
regions
Posted by "Brandon Williams (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brandon Williams reassigned CASSANDRA-4026:
-------------------------------------------
Assignee: Vijay
> EC2 snitch incorrectly reports regions
> --------------------------------------
>
> Key: CASSANDRA-4026
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4026
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.0.8
> Environment: Ubuntu 10.10 64 bit Oracle Java 6
> Reporter: Todd Nine
> Assignee: Vijay
> Priority: Critical
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira