Skip to content

Commit 81a4538

Browse files
committed
Merge pull request apache#392 from ptnapoleon/ccm-281
Remove hardcoded check for CCM-281
2 parents 95d3257 + 82e3b15 commit 81a4538

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

driver-core/src/test/java/com/datastax/driver/core/CCMBridge.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -191,33 +191,24 @@ private static File createTempStore(String storePath) {
191191
}
192192

193193
public static CCMBridge create(String name, String... options) {
194-
// This leads to a confusing CCM error message so check explicitly:
195-
checkArgument(!"current".equals(name.toLowerCase()),
196-
"cluster can't be called \"current\"");
197194
CCMBridge bridge = new CCMBridge();
198195
bridge.execute(CCM_COMMAND + " create %s -b -i %s %s " + Joiner.on(" ").join(options), name, IP_PREFIX, CASSANDRA_VERSION);
199196
return bridge;
200197
}
201198

202199
public static CCMBridge create(String name, int nbNodes, String... options) {
203-
checkArgument(!"current".equals(name.toLowerCase()),
204-
"cluster can't be called \"current\"");
205200
CCMBridge bridge = new CCMBridge();
206201
bridge.execute(CCM_COMMAND + " create %s -n %d -s -i %s -b %s " + Joiner.on(" ").join(options), name, nbNodes, IP_PREFIX, CASSANDRA_VERSION);
207202
return bridge;
208203
}
209204

210205
public static CCMBridge createWithCustomVersion(String name, int nbNodes, String cassandraVersion) {
211-
checkArgument(!"current".equals(name.toLowerCase()),
212-
"cluster can't be called \"current\"");
213206
CCMBridge bridge = new CCMBridge();
214207
bridge.execute(CCM_COMMAND + " create %s -n %d -s -i %s -b -v %s ", name, nbNodes, IP_PREFIX, cassandraVersion);
215208
return bridge;
216209
}
217210

218211
public static CCMBridge create(String name, int nbNodesDC1, int nbNodesDC2) {
219-
checkArgument(!"current".equals(name.toLowerCase()),
220-
"cluster can't be called \"current\"");
221212
CCMBridge bridge = new CCMBridge();
222213
bridge.execute(CCM_COMMAND + " create %s -n %d:%d -s -i %s -b %s", name, nbNodesDC1, nbNodesDC2, IP_PREFIX, CASSANDRA_VERSION);
223214
return bridge;

0 commit comments

Comments
 (0)