Cli shouldn't call FBU.getBroadcastAddress needlessly
-----------------------------------------------------
Key: CASSANDRA-3986
URL: https://issues.apache.org/jira/browse/CASSANDRA-3986
Project: Cassandra
Issue Type: Bug
Components: Core
Affects Versions: 1.0.8
Reporter: Brandon Williams
Assignee: Brandon Williams
Fix For: 1.0.9, 1.1.0
The cli is calling this, which causes yaml to be loaded, but the broadcast
address isn't needed.
{code}
// adding default data center from SimpleSnitch
if (currentStrategyOptions == null ||
currentStrategyOptions.isEmpty())
{
SimpleSnitch snitch = new SimpleSnitch();
Map<String, String> options = new HashMap<String, String>();
options.put(snitch.getDatacenter(FBUtilities.getBroadcastAddress()), "1");
ksDef.setStrategy_options(options);
}
{code}
because SimpleSnitch always returns 'datacenter1'
--
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