[ 
https://issues.apache.org/jira/browse/CASSANDRA-4382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arya Goudarzi updated CASSANDRA-4382:
-------------------------------------

    Description: 
nodetool describering returns empty endpoints with NetworkTopologyStrategy and 
Ec2MultiRegionSnitch.

Steps to Reproduce:
1. Launch a 4 node cluster in 2 distinct Ec2 zones using Cassandra 1.1.1 binary 
build. This is how the ring looks like:

Address         DC          Rack        Status State   Load            Owns     
           Token                                       
                                                                                
           127605887595351923798765477788721654896     
000.000.000.000    us-east     1c          Up     Normal  198.26 KB       
25.00%              1808575600                                  
000.000.000.000  us-east     1b          Up     Normal  142.7 KB        25.00%  
            42535295865117307932921825930779602032      
000.000.000.000    us-east     1c          Up     Normal  155.82 KB       
25.00%              85070591730234615865843651859750628464      
000.000.000.000    us-east     1b          Up     Normal  216.49 KB       
25.00%              127605887595351923798765477788721654896     

Noteworthy Configurations:
Ec2MultiRegionSnitch

2. Create the following keyspace:
create keyspace test_app
  with placement_strategy = 'NetworkTopologyStrategy'
  and strategy_options = {us-east-1 : 2}
  and durable_writes = true;

3. nodetool describering test_app
Schema Version:cbae47df-99ee-3b41-aa33-238fe2f8e448
TokenRange: 
        TokenRange(start_token:127605887595351923798765477788721654896, 
end_token:1808575600, endpoints:[], rpc_endpoints:[], endpoint_details:[])
        TokenRange(start_token:85070591730234615865843651859750628464, 
end_token:127605887595351923798765477788721654896, endpoints:[], 
rpc_endpoints:[], endpoint_details:[])
        TokenRange(start_token:42535295865117307932921825930779602032, 
end_token:85070591730234615865843651859750628464, endpoints:[], 
rpc_endpoints:[], endpoint_details:[])
        TokenRange(start_token:1808575600, 
end_token:42535295865117307932921825930779602032, endpoints:[], 
rpc_endpoints:[], endpoint_details:[])

I had asked this in chat yesterday. First in my test environment where I had 
only one local node I was mistakenly using NetworkTopology like above which 
ended up in returning no endpoint, so that was my problem and changing it to 
SimpleStrategy worked. Now I have a 4 node cluster and NetworkTopology seams to 
not work as expected.

Please investigate. Thank You.

  was:
nodetool describering returns empty endpoints with NetworkTopologyStrategy and 
Ec2MultiRegionSnitch.

Steps to Reproduce:
1. Launch a 4 node cluster in 2 distinct Ec2 zones using Cassandra 1.1.1 binary 
build. This is how the ring looks like:

Address         DC          Rack        Status State   Load            Owns     
           Token                                       
                                                                                
           127605887595351923798765477788721654896     
********    us-east     1c          Up     Normal  198.26 KB       25.00%       
       1808575600                                  
********  us-east     1b          Up     Normal  142.7 KB        25.00%         
     42535295865117307932921825930779602032      
********    us-east     1c          Up     Normal  155.82 KB       25.00%       
       85070591730234615865843651859750628464      
********    us-east     1b          Up     Normal  216.49 KB       25.00%       
       127605887595351923798765477788721654896     

Noteworthy Configurations:
Ec2MultiRegionSnitch

2. Create the following keyspace:
create keyspace test_app
  with placement_strategy = 'NetworkTopologyStrategy'
  and strategy_options = {us-east-1 : 2}
  and durable_writes = true;

3. nodetool describering test_app
Schema Version:cbae47df-99ee-3b41-aa33-238fe2f8e448
TokenRange: 
        TokenRange(start_token:127605887595351923798765477788721654896, 
end_token:1808575600, endpoints:[], rpc_endpoints:[], endpoint_details:[])
        TokenRange(start_token:85070591730234615865843651859750628464, 
end_token:127605887595351923798765477788721654896, endpoints:[], 
rpc_endpoints:[], endpoint_details:[])
        TokenRange(start_token:42535295865117307932921825930779602032, 
end_token:85070591730234615865843651859750628464, endpoints:[], 
rpc_endpoints:[], endpoint_details:[])
        TokenRange(start_token:1808575600, 
end_token:42535295865117307932921825930779602032, endpoints:[], 
rpc_endpoints:[], endpoint_details:[])

I had asked this in chat yesterday. First in my test environment where I had 
only one local node I was mistakenly using NetworkTopology like above which 
ended up in returning no endpoint, so that was my problem and changing it to 
SimpleStrategy worked. Now I have a 4 node cluster and NetworkTopology seams to 
not work as expected.

Please investigate. Thank You.

    
> describering returns empty endpoint with NetworkTopologyStrategy
> ----------------------------------------------------------------
>
>                 Key: CASSANDRA-4382
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4382
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.1.1
>         Environment: Ubuntu Precise
> 2 x Ec2 m2.xlarge in 2 distinct zone (total 4 nodes)
> Cassandra 1.1.1
>            Reporter: Arya Goudarzi
>
> nodetool describering returns empty endpoints with NetworkTopologyStrategy 
> and Ec2MultiRegionSnitch.
> Steps to Reproduce:
> 1. Launch a 4 node cluster in 2 distinct Ec2 zones using Cassandra 1.1.1 
> binary build. This is how the ring looks like:
> Address         DC          Rack        Status State   Load            Owns   
>              Token                                       
>                                                                               
>              127605887595351923798765477788721654896     
> 000.000.000.000    us-east     1c          Up     Normal  198.26 KB       
> 25.00%              1808575600                                  
> 000.000.000.000  us-east     1b          Up     Normal  142.7 KB        
> 25.00%              42535295865117307932921825930779602032      
> 000.000.000.000    us-east     1c          Up     Normal  155.82 KB       
> 25.00%              85070591730234615865843651859750628464      
> 000.000.000.000    us-east     1b          Up     Normal  216.49 KB       
> 25.00%              127605887595351923798765477788721654896     
> Noteworthy Configurations:
> Ec2MultiRegionSnitch
> 2. Create the following keyspace:
> create keyspace test_app
>   with placement_strategy = 'NetworkTopologyStrategy'
>   and strategy_options = {us-east-1 : 2}
>   and durable_writes = true;
> 3. nodetool describering test_app
> Schema Version:cbae47df-99ee-3b41-aa33-238fe2f8e448
> TokenRange: 
>       TokenRange(start_token:127605887595351923798765477788721654896, 
> end_token:1808575600, endpoints:[], rpc_endpoints:[], endpoint_details:[])
>       TokenRange(start_token:85070591730234615865843651859750628464, 
> end_token:127605887595351923798765477788721654896, endpoints:[], 
> rpc_endpoints:[], endpoint_details:[])
>       TokenRange(start_token:42535295865117307932921825930779602032, 
> end_token:85070591730234615865843651859750628464, endpoints:[], 
> rpc_endpoints:[], endpoint_details:[])
>       TokenRange(start_token:1808575600, 
> end_token:42535295865117307932921825930779602032, endpoints:[], 
> rpc_endpoints:[], endpoint_details:[])
> I had asked this in chat yesterday. First in my test environment where I had 
> only one local node I was mistakenly using NetworkTopology like above which 
> ended up in returning no endpoint, so that was my problem and changing it to 
> SimpleStrategy worked. Now I have a 4 node cluster and NetworkTopology seams 
> to not work as expected.
> Please investigate. Thank You.

--
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