[ 
https://issues.apache.org/jira/browse/CASSANDRA-6523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14007145#comment-14007145
 ] 

Chris Burroughs commented on CASSANDRA-6523:
--------------------------------------------

I don't think that's an unreasonable requirement and I can roll with it but if 
there is an easy way the check could be made contact based instead of string 
equality based that would be nice.  Starting a cluster is often the first thing 
someone will do with Cassandra and NATs, firewalls hijacking DNS requests, 
reconnecting snitches all make this complicated (Top results on stack overflow 
disagree for example [1] [2]).

Barring a more clever check I suggest changing the message to something like 
"Seed check failed!  At least one boardcast_address must match IPs from seed 
list".  Seeing "Handshaking with foo" from the seed list and then "Unable to 
contact any seeds!" is a confusing experience.

[1] 
http://stackoverflow.com/questions/21261098/cassandra-unable-to-contact-seeds-if-using-aws-elastic-ip-address-only-works
[2] 
http://stackoverflow.com/questions/20690987/apache-cassandra-unable-to-gossip-with-any-seeds

> "Unable to contact any seeds!" with multi-DC cluster and listen != broadcast 
> address
> ------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-6523
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6523
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: 1.2.13ish
>            Reporter: Chris Burroughs
>            Assignee: Brandon Williams
>
> New cluster:
>  * Seeds: list of 6 internal IPs
>  * listen address: internal ip
>  * broadcast: external ip
> Two DC cluster, using GPFS where the external IPs are NATed.  Clusters fails 
> to start with "Unable to contact any seeds!"
>  * Fail: Try to start a seed node
>  * Fail: Try to start two seed nodes at the same time in the same DC
>  * Success: Start two seed nodes at the same time in different DCs.
> Presumably related to CASSANDRA-5768



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to