Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Switch to lowercase keyspace name #36

Closed
wants to merge 1 commit into from

1 participant

@jnunemaker

Must be my version of cassandra (1.1.5), but I could not get the tests to run without changing to a lowercase keyspace name.

I tried just doing the include check with lowercase, but cassandra really did not like the switching of case in various places. This seems to work best from what I can tell.

Decided rather than just ask you about it, I would start the discussion with a version that seems to fix the problem for me and get your thoughts.

If you want, I can send you the output I get.

@jnunemaker jnunemaker Switch to lowercase keyspace name.
Must be my version of cassandra (1.1.5), but I could not get the tests to run without changing to a lowercase keyspace name.

I tried just doing the include check with lowercase, but cassandra really did not like the switching of case in various places. This seems to work best from what I can tell.
a0ab016
@jnunemaker

Of course as soon as I send this, it starts passing with uppercase for me. Hmm... not sure what kind of state I got into that it failed over and over. I'll close this for now until I come across it again and can re-create. Sorry for the noise.

@jnunemaker jnunemaker closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 8, 2012
  1. @jnunemaker

    Switch to lowercase keyspace name.

    jnunemaker authored
    Must be my version of cassandra (1.1.5), but I could not get the tests to run without changing to a lowercase keyspace name.
    
    I tried just doing the include check with lowercase, but cassandra really did not like the switching of case in various places. This seems to work best from what I can tell.
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 spec/spec_helper.rb
View
6 spec/spec_helper.rb
@@ -23,10 +23,10 @@ def yaml_fixture(file)
def setup_cassandra_connection
connection = CassandraCQL::Database.new(["127.0.0.1:9160"], {}, :retries => 5, :timeout => 1)
- if !connection.keyspaces.map(&:name).include?("CassandraCQLTestKeyspace")
- connection.execute("CREATE KEYSPACE CassandraCQLTestKeyspace WITH strategy_class='org.apache.cassandra.locator.SimpleStrategy' AND strategy_options:replication_factor=1")
+ if !connection.keyspaces.map(&:name).include?("cassandra_cql_test")
+ connection.execute("CREATE KEYSPACE cassandra_cql_test WITH strategy_class='org.apache.cassandra.locator.SimpleStrategy' AND strategy_options:replication_factor=1")
end
- connection.execute("USE CassandraCQLTestKeyspace")
+ connection.execute("USE cassandra_cql_test")
connection
end
Something went wrong with that request. Please try again.