Yes, ConsistencyLevel was an enum already -- but the thrift generated api, 
at that version, generated methods that received an int where a 
ConsistencyLevel was declared. (I am looking at 
gen-java/.../Cassandra.java from a downloaded 0.4.2). Then one needs to 
change the client, assuming you are using Java. I don't know at which 
thrift revision this was changed; I just found it when migrating 0.4.2 -> 
trunk this week.

About the constructors, ok -- I did not know this was different in 0.5.

regards,
Hernan



From:
Jonathan Ellis <jbel...@gmail.com>
To:
cassandra-user@incubator.apache.org
Date:
01/14/2010 10:42 AM
Subject:
Re: Tuning and upgrades



This is not correct.  ConsistencyLevel was already an enum in 0.4, and the 
constructors don't change until the release after 0.5.

On Thu, Jan 14, 2010 at 7:10 AM, Hernan Badenes <hbade...@ar.ibm.com> 
wrote:
I think you also need to upgrade your thrift jar, since the version in 0.5 
is different. And this brings a change in enums, which are no longer plain 
int values but classes. Constructors of most thrift-generated classes also 
change (e.g. new ColumnPath(cf, null, colName) -> new 
ColumnPath(cf).setColumn(colName))... 
In any case, I think you will need to upgrade clients. 

Regards, 
Hernan 


From: 
Jonathan Ellis <jbel...@gmail.com> 
To: 
cassandra-user@incubator.apache.org 
Date: 
01/13/2010 11:47 PM 
Subject: 
Re: Tuning and upgrades





On Wed, Jan 13, 2010 at 6:02 PM, Anthony Molinaro
<antho...@alumni.caltech.edu> wrote:
> So is the thrift interface for 0.5.0 compatible with that of 0.4.x or
> do I need to upgrade clients for that upgrade?

Just exceptions have changed.  (And get_range_slice was added.)

-Jonathan




Reply via email to