datastax / cstar_perf

Apache Cassandra performance testing platform
Apache License 2.0
72 stars 34 forks source link

Improve detection if keyspace already exists #244

Closed nastra closed 7 years ago

nastra commented 7 years ago

With cassandra-driver==3.7.0 we don't run into if "Keyspace '{ks}' does not exist".format(ks=self.keyspace) in e.message: anymore when connecting to the cluster, therefore we need to create the keyspace before that & also need to check the cluster if we can skip keyspace creation

csplinter commented 7 years ago

+1, what does cassandra-driver==3.7.0 return now instead of Keyspace '{ks}' does not exist when connecting to the cluster?

nastra commented 7 years ago

it still returns the same error message but only when trying to execute/prepare a query. With a previous driver version, that error would already happen when connecting to the cluster