[ 
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

        

Reply via email to