cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ellis <jbel...@gmail.com>
Subject Re: Tuning and upgrades
Date Thu, 14 Jan 2010 14:35:26 GMT
Ah, yes, the enum thing changed in trunk too.  We upgraded our version of
the Thrift compiler for trunk, after 0.5.  So 0.4 to 0.5 upgrading does not
need to worry.

On Thu, Jan 14, 2010 at 8:31 AM, Hernan Badenes <hbadenes@ar.ibm.com> wrote:

> 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 <jbellis@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 <*hbadenes@ar.ibm.com*<hbadenes@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 <*jbellis@gmail.com* <jbellis@gmail.com>>  To: *
> cassandra-user@incubator.apache.org* <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
> <*anthonym@alumni.caltech.edu* <anthonym@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
>
>
>
>
>

Mime
View raw message