cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ellis <jbel...@gmail.com>
Subject Re: getSchemaVersion
Date Tue, 12 Oct 2010 01:14:48 GMT
On Mon, Oct 11, 2010 at 7:53 PM, B. Todd Burruss <bburruss@real.com> wrote:
>  to determine if my programmatic schema changes have been distributed
> throughout the cluster, I am supposed to use getSchemaVersionMap, correct?
>
> my question is how do I properly use it?  I have the schema version returned
> from the thrift method, and I can lookup in the schema map returned
> getSchemaVersionMap, but i'm not sure the proper way to interpret results.
>
> do i wait until getSchemaVersionMap has an entry for the version in question
> that contains all the nodes in my cluster?

Yes.

> if this is the case, then i'm having trouble getting the number of nodes if
> i have never created a keyspace.  with no keyspace i can't ask for the ring,
> in which case i can't count the number of nodes.

Each node can only have one active version, so the converse of "my new
version has all the nodes in the cluster" is "there are no other
versions present in the map."

-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com

Mime
View raw message