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

Reply via email to