mirror of https://github.com/apache/cassandra
Merge branch 'cassandra-2.2' into cassandra-3.0
This commit is contained in:
commit
4b01e8fc5c
|
|
@ -29,6 +29,7 @@ Merged from 2.2:
|
||||||
* (Hadoop) fix splits calculation (CASSANDRA-10640)
|
* (Hadoop) fix splits calculation (CASSANDRA-10640)
|
||||||
* (Hadoop) ensure that Cluster instances are always closed (CASSANDRA-10058)
|
* (Hadoop) ensure that Cluster instances are always closed (CASSANDRA-10058)
|
||||||
Merged from 2.1:
|
Merged from 2.1:
|
||||||
|
* Fix Stress profile parsing on Windows (CASSANDRA-10808)
|
||||||
* Fix incremental repair hang when replica is down (CASSANDRA-10288)
|
* Fix incremental repair hang when replica is down (CASSANDRA-10288)
|
||||||
* Optimize the way we check if a token is repaired in anticompaction (CASSANDRA-10768)
|
* Optimize the way we check if a token is repaired in anticompaction (CASSANDRA-10768)
|
||||||
* Add proper error handling to stream receiver (CASSANDRA-10774)
|
* Add proper error handling to stream receiver (CASSANDRA-10774)
|
||||||
|
|
|
||||||
|
|
@ -55,12 +55,7 @@ public class SettingsCommandUser extends SettingsCommand
|
||||||
|
|
||||||
String yamlPath = options.profile.value();
|
String yamlPath = options.profile.value();
|
||||||
File yamlFile = new File(yamlPath);
|
File yamlFile = new File(yamlPath);
|
||||||
if (yamlFile.exists())
|
profile = StressProfile.load(yamlFile.exists() ? yamlFile.toURI() : URI.create(yamlPath));
|
||||||
{
|
|
||||||
yamlPath = "file:///" + yamlFile.getAbsolutePath();
|
|
||||||
}
|
|
||||||
|
|
||||||
profile = StressProfile.load(URI.create(yamlPath));
|
|
||||||
|
|
||||||
if (ratios.size() == 0)
|
if (ratios.size() == 0)
|
||||||
throw new IllegalArgumentException("Must specify at least one command with a non-zero ratio");
|
throw new IllegalArgumentException("Must specify at least one command with a non-zero ratio");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue