incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John R. Frank" <...@mit.edu>
Subject consistency level for "create keyspace"?
Date Mon, 03 Jun 2013 09:45:11 GMT
C*

When I create a keyspace with pycassa on a multi-node cluster, it takes 
some time before all the nodes know about the keyspace.

So, if I do this:

     sm = SystemManager(random.choice(server_list))
     sm.create_keyspace(keyspace, SIMPLE_STRATEGY, {'replication_factor': '1'})
     sm.close()

and then immediately pick a different node, it often will raise 
InvalidRequestException(why="Keyspace 'foo' does not exist")


Is there a better way to handle this than just avoiding immediately asking 
other nodes for the keyspace?


John

Mime
View raw message