[
https://issues.apache.org/jira/browse/CASSANDRA-256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723888#action_12723888
]
Jonathan Ellis commented on CASSANDRA-256:
------------------------------------------
The reason it defaults to localhost is that letting the JDK pick an address
(which is what it does when it is left blank) does not always work. We want a
default that will always work at least in the single node case.
Using 0.0.0.0 to mean "pick one" is confusing to someone who understands what
is going on. This value is the one that it tells _other nodes connect to_.
Another node cannot connect to 0.0.0.0 so it does not make sense.
We do need to document the blank=guess option. But again, I emphasize that
it's not magic and it DOES pick the wrong one sometimes. This screwed a lot of
people over in the early days, it's not just a hypothetical problem.
> Improve ListenAddress in Storage-Conf
> -------------------------------------
>
> Key: CASSANDRA-256
> URL: https://issues.apache.org/jira/browse/CASSANDRA-256
> Project: Cassandra
> Issue Type: Improvement
> Reporter: Chris Goffinet
> Assignee: Chris Goffinet
> Priority: Minor
>
> Right now in storage-conf we have:
> <ListenAddress>localhost</ListenAddress>
> We should probably change this to 0.0.0.0 by default for new comers, since
> setting up multi-node installation with localhost, isn't going to work right.
> Right now 0.0.0.0 might not work right, (leaving blank does). So we should
> check that in DatabaseDescriptor. Also a nice to have is maybe an XML doc
> comment.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.