Jenkins build is back to normal : Cassandra-quick #59

2011-10-11 Thread Apache Jenkins Server
See 




Re: [VOTE] Release Apache Cassandra 1.0.0 (Final) - Strike 2

2011-10-11 Thread Sylvain Lebresne
The artifacts for this vote happen to have
https://issues.apache.org/jira/browse/CASSANDRA-3343.

This is a purely cosmetic issue, and clearly I don't want to reroll the vote
for this, which would delay the release.

But I also think that fixing this issue has zero chance of screwing anything
up, so while it feels stupid to delay the release for that, it also feels
stupid to me to annoy people with it.

So I have created new artifacts, based on the previous ones but with the
infamous 'echo $CLASSPATH' removed from cassandra.in.sh. And what I'm
proposing is to simply switch to those last artifacts for the release instead
of the initial ones, but without restarting a vote just for that. The new
artifacts are:

SVN: 
https://svn.apache.org/repos/asf/cassandra/branches/cassandra-1.0.0@r1181741
Artifacts: 
https://repository.apache.org/content/repositories/orgapachecassandra-053/org/apache/cassandra/apache-cassandra/1.0.0/
Staging repository:
https://repository.apache.org/content/repositories/orgapachecassandra-053/

I've also put them and the corresponding debian package at
http://people.apache.org/~slebresne/with_3343/

We still have 2 days to go on this vote, so this is not a sneaky move either.
However, I've kept the initial artifacts around for now, so if someone
disagree strongly, we'll stick to the initial artifacts.

--
Sylvain

On Tue, Oct 11, 2011 at 7:30 AM, Todd Burruss  wrote:
> This is a bit preliminary, but wanted to get this to you guys knowing the
> vote is in progress 
>
> using these artifacts I am seeing the following exception on restart.
> (also with RC1 and RC2.)  the only interesting tidbit is that it seems to
> only happen when writing via direct calls to StorageProxy.  I can't quite
> compare apples to apples, but if I only write via Thrift interface, replay
> of the commitlog works.  Write via StorageProxy (but a different CF than
> via Thrift) the replay throws exception.
>
>
>
> INFO 22:06:50,671 Replaying
> /var/lib/cassandra/commitlog/CommitLog-1318309128835.log,
> /var/lib/cassandra/commitlog/CommitLog-1318309569302.log
>  INFO 22:06:50,700 Finished reading
> /var/lib/cassandra/commitlog/CommitLog-1318309128835.log
> ERROR 22:06:50,702 Exception encountered during startup
> org.apache.cassandra.db.ColumnSerializer$CorruptColumnException: invalid
> column name length 0
>        at
> org.apache.cassandra.db.ColumnSerializer.deserialize(ColumnSerializer.java:
> 89)
>        at
> org.apache.cassandra.db.ColumnSerializer.deserialize(ColumnSerializer.java:
> 36)
>        at
> org.apache.cassandra.db.ColumnFamilySerializer.deserializeColumns(ColumnFam
> ilySerializer.java:143)
>        at
> org.apache.cassandra.db.ColumnFamilySerializer.deserializeColumns(ColumnFam
> ilySerializer.java:135)
>        at
> org.apache.cassandra.db.ColumnFamilySerializer.deserialize(ColumnFamilySeri
> alizer.java:128)
>        at
> org.apache.cassandra.db.RowMutation$RowMutationSerializer.deserialize(RowMu
> tation.java:404)
>        at 
> org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:284)
>        at 
> org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:171)
>        at
> org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandr
> aDaemon.java:196)
>        at
> org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassa
> ndraDaemon.java:337)
>        at
> org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:106)
> org.apache.cassandra.db.ColumnSerializer$CorruptColumnException: invalid
> column name length 0
>        at
> org.apache.cassandra.db.ColumnSerializer.deserialize(ColumnSerializer.java:
> 89)
>        at
> org.apache.cassandra.db.ColumnSerializer.deserialize(ColumnSerializer.java:
> 36)
>        at
> org.apache.cassandra.db.ColumnFamilySerializer.deserializeColumns(ColumnFam
> ilySerializer.java:143)
>        at
> org.apache.cassandra.db.ColumnFamilySerializer.deserializeColumns(ColumnFam
> ilySerializer.java:135)
>        at
> org.apache.cassandra.db.ColumnFamilySerializer.deserialize(ColumnFamilySeri
> alizer.java:128)
>        at
> org.apache.cassandra.db.RowMutation$RowMutationSerializer.deserialize(RowMu
> tation.java:404)
>        at 
> org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:284)
>        at 
> org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:171)
>        at
> org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandr
> aDaemon.java:196)
>        at
> org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassa
> ndraDaemon.java:337)
>        at
> org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:106)
> Exception encountered during startup: invalid column name length 0
>
>
>
>
> On 10/10/11 9:24 AM, "Sylvain Lebresne"  wrote:
>
>>As said while closing previous vote, CASSANDRA-3338 felt important enough
>>to
>>warrant a reroll. So here it is: I propose the following artifacts for
>>release
>>as 1.0.0 (

Re: [VOTE] Release Apache Cassandra 1.0.0 (Final) - Strike 2

2011-10-11 Thread Sylvain Lebresne
@Todd You're likely doing something wrong with your ByteBuffers. It's
*very* easy
to screw up with those.

--
Sylvain

On Tue, Oct 11, 2011 at 7:30 AM, Todd Burruss  wrote:
> This is a bit preliminary, but wanted to get this to you guys knowing the
> vote is in progress 
>
> using these artifacts I am seeing the following exception on restart.
> (also with RC1 and RC2.)  the only interesting tidbit is that it seems to
> only happen when writing via direct calls to StorageProxy.  I can't quite
> compare apples to apples, but if I only write via Thrift interface, replay
> of the commitlog works.  Write via StorageProxy (but a different CF than
> via Thrift) the replay throws exception.
>
>
>
> INFO 22:06:50,671 Replaying
> /var/lib/cassandra/commitlog/CommitLog-1318309128835.log,
> /var/lib/cassandra/commitlog/CommitLog-1318309569302.log
>  INFO 22:06:50,700 Finished reading
> /var/lib/cassandra/commitlog/CommitLog-1318309128835.log
> ERROR 22:06:50,702 Exception encountered during startup
> org.apache.cassandra.db.ColumnSerializer$CorruptColumnException: invalid
> column name length 0
>        at
> org.apache.cassandra.db.ColumnSerializer.deserialize(ColumnSerializer.java:
> 89)
>        at
> org.apache.cassandra.db.ColumnSerializer.deserialize(ColumnSerializer.java:
> 36)
>        at
> org.apache.cassandra.db.ColumnFamilySerializer.deserializeColumns(ColumnFam
> ilySerializer.java:143)
>        at
> org.apache.cassandra.db.ColumnFamilySerializer.deserializeColumns(ColumnFam
> ilySerializer.java:135)
>        at
> org.apache.cassandra.db.ColumnFamilySerializer.deserialize(ColumnFamilySeri
> alizer.java:128)
>        at
> org.apache.cassandra.db.RowMutation$RowMutationSerializer.deserialize(RowMu
> tation.java:404)
>        at 
> org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:284)
>        at 
> org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:171)
>        at
> org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandr
> aDaemon.java:196)
>        at
> org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassa
> ndraDaemon.java:337)
>        at
> org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:106)
> org.apache.cassandra.db.ColumnSerializer$CorruptColumnException: invalid
> column name length 0
>        at
> org.apache.cassandra.db.ColumnSerializer.deserialize(ColumnSerializer.java:
> 89)
>        at
> org.apache.cassandra.db.ColumnSerializer.deserialize(ColumnSerializer.java:
> 36)
>        at
> org.apache.cassandra.db.ColumnFamilySerializer.deserializeColumns(ColumnFam
> ilySerializer.java:143)
>        at
> org.apache.cassandra.db.ColumnFamilySerializer.deserializeColumns(ColumnFam
> ilySerializer.java:135)
>        at
> org.apache.cassandra.db.ColumnFamilySerializer.deserialize(ColumnFamilySeri
> alizer.java:128)
>        at
> org.apache.cassandra.db.RowMutation$RowMutationSerializer.deserialize(RowMu
> tation.java:404)
>        at 
> org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:284)
>        at 
> org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:171)
>        at
> org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandr
> aDaemon.java:196)
>        at
> org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassa
> ndraDaemon.java:337)
>        at
> org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:106)
> Exception encountered during startup: invalid column name length 0
>
>
>
>
> On 10/10/11 9:24 AM, "Sylvain Lebresne"  wrote:
>
>>As said while closing previous vote, CASSANDRA-3338 felt important enough
>>to
>>warrant a reroll. So here it is: I propose the following artifacts for
>>release
>>as 1.0.0 (those are the same as the previous + the patch for
>>CASSANDRA-3338
>>and a one line fix to the build file so that it picks the right version of
>>snappy-java from maven central).
>>
>>SVN:
>>https://svn.apache.org/repos/asf/cassandra/branches/cassandra-1.0.0@r11809
>>70
>>Artifacts:
>>https://repository.apache.org/content/repositories/orgapachecassandra-046/
>>org/apache/cassandra/apache-cassandra/1.0.0/
>>Staging repository:
>>https://repository.apache.org/content/repositories/orgapachecassandra-046/
>>
>>The artifacts as well as the debian package are also available here:
>>http://people.apache.org/~slebresne/
>>
>>The vote will be open for 72 hours (longer if needed).
>>
>>[1]: http://goo.gl/JB2NL (CHANGES.txt)
>>[2]: http://goo.gl/x6gTC (NEWS.txt)
>
>


Re: [VOTE] Release Apache Cassandra 1.0.0 (Final) - Strike 2

2011-10-11 Thread Brandon Williams
On Tue, Oct 11, 2011 at 8:29 AM, Sylvain Lebresne  wrote:
> So I have created new artifacts, based on the previous ones but with the
> infamous 'echo $CLASSPATH' removed from cassandra.in.sh. And what I'm
> proposing is to simply switch to those last artifacts for the release instead
> of the initial ones, but without restarting a vote just for that.

+1.  I agree there is absolutely zero chance of this breaking anything.

-Brandon


Re: [VOTE] Release Apache Cassandra 1.0.0 (Final) - Strike 2

2011-10-11 Thread Jonathan Ellis
+1

On Tue, Oct 11, 2011 at 8:32 AM, Brandon Williams  wrote:
> On Tue, Oct 11, 2011 at 8:29 AM, Sylvain Lebresne  
> wrote:
>> So I have created new artifacts, based on the previous ones but with the
>> infamous 'echo $CLASSPATH' removed from cassandra.in.sh. And what I'm
>> proposing is to simply switch to those last artifacts for the release instead
>> of the initial ones, but without restarting a vote just for that.
>
> +1.  I agree there is absolutely zero chance of this breaking anything.
>
> -Brandon
>



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


Re: REST API?

2011-10-11 Thread Nick Telford
There are no plans to move to Maven for 2 reasons: 1) a majority of
committers favour Ant; 2) if it aint broke, don't fix it.

On 11 October 2011 03:33, Brian O'Neill  wrote:

> Will do.   I've picked up where Gary left off.  It is good starting point,
> with a good mapping between REST and get/set/mutations. (kudos to Gary)
>  I'll update it to accomodate any changes and see if I can add some tests
> on
> top of it.
>
> I may look to add in JAX-RS (on either Jersey or Apache CXF).  We use it
> for
> all of our REST services, and it may provide a good abstraction layer that
> we can build on.
>
> Give me a couple days.
> I have to get back into the "ant mentality". I've been doing maven too
> long.
> BTW -- Does anyone know if there are plans to move to maven?
> (Not trying to start a religious war, just curious. ;)
>
> -brian
>
> On Mon, Oct 10, 2011 at 10:06 PM, Jeremy Hanna
> wrote:
>
> > Brian,
> >
> > If you end up doing something with the rest api and making it
> > available/open source, please post again either here or on the user list.
>  I
> > think others would be interested and may contribute to it.
> >
> > Cheers,
> >
> > Jeremy
> >
> > On Oct 10, 2011, at 8:42 PM, Brian O'Neill wrote:
> >
> > > Thanks Gary. Perfect.  Checking it out now.
> > >
> > > Performance isn't much of a concern for us through the REST interface.
> >  We
> > > are using the Hadoop/PIG integration to do the heavy lifting.  This
> will
> > be
> > > mostly for reads and small number of writes.
> > >
> > > I'll definitely give this a try.  Thanks again.  I'll let you know how
> it
> > > turns out.
> > >
> > > -brian
> > >
> > > On Mon, Oct 10, 2011 at 9:35 PM, Gary Dusbabek 
> > wrote:
> > >
> > >> It turns out that it is pretty easy (or it was a year ago) to replace
> > >> the native Cassandra transport with your own.  I wrote about it on my
> > >> blog (http://www.onemanclapping.org/2010/09/restful-cassandra.html),
> > >> using REST as an example.
> > >>
> > >>
> > >> On Mon, Oct 10, 2011 at 20:12, Brian O'Neill 
> > >> wrote:
> > >>> My team desperately needs a REST API for Cassandra.
> > >>>
> > >>> I saw the following:
> > >>> http://code.google.com/p/restish/
> > >>> from
> > >>>
> > >>
> >
> http://crlog.info/2011/01/29/restish-wrapper-for-hectorcassandra-data-manipulation/
> > >>>
> > >>> But it appears to have little activity and documentation.
> > >>>
> > >>> That lead me to start work on a contrib/rest module, but before I get
> > to
> > >> far
> > >>> I wanted to ask if there was any effort underway for a REST
> Server/API.
> > >>> If not, I'll continue developing the REST server.  Any preference for
> a
> > >> REST
> > >>> stack?  (JAX-RS on Apache-CXF?  Raw Servlets? Netty? etc.)
> > >>>
> > >>> Until I hear back, I'll continue with the JAX-RS / Apache CXF
> > >> implementation
> > >>> I have cooking.
> > >>>
> > >>> -brian
> > >>>
> > >>> --
> > >>> Brian ONeill
> > >>> Lead Architect, Health Market Science (
> http://healthmarketscience.com)
> > >>> mobile:215.588.6024
> > >>> blog: http://weblogs.java.net/blog/boneill42/
> > >>> blog: http://brianoneill.blogspot.com/
> > >>>
> > >>
> > >
> > >
> > >
> > > --
> > > Brian ONeill
> > > Lead Architect, Health Market Science (http://healthmarketscience.com)
> > > mobile:215.588.6024
> > > blog: http://weblogs.java.net/blog/boneill42/
> > > blog: http://brianoneill.blogspot.com/
> >
> >
>
>
> --
> Brian ONeill
> Lead Architect, Health Market Science (http://healthmarketscience.com)
> mobile:215.588.6024
> blog: http://weblogs.java.net/blog/boneill42/
> blog: http://brianoneill.blogspot.com/
>


Re: REST API?

2011-10-11 Thread Matt Kennedy
I have one based on restlet: https://github.com/stinkymatt/Helena

On Mon, Oct 10, 2011 at 9:12 PM, Brian O'Neill  wrote:
> My team desperately needs a REST API for Cassandra.
>
> I saw the following:
> http://code.google.com/p/restish/
> from
> http://crlog.info/2011/01/29/restish-wrapper-for-hectorcassandra-data-manipulation/
>
> But it appears to have little activity and documentation.
>
> That lead me to start work on a contrib/rest module, but before I get to far
> I wanted to ask if there was any effort underway for a REST Server/API.
> If not, I'll continue developing the REST server.  Any preference for a REST
> stack?  (JAX-RS on Apache-CXF?  Raw Servlets? Netty? etc.)
>
> Until I hear back, I'll continue with the JAX-RS / Apache CXF implementation
> I have cooking.
>
> -brian
>
> --
> Brian ONeill
> Lead Architect, Health Market Science (http://healthmarketscience.com)
> mobile:215.588.6024
> blog: http://weblogs.java.net/blog/boneill42/
> blog: http://brianoneill.blogspot.com/
>


RE: REST API?

2011-10-11 Thread declan
Please take me OFF this email...thanks

All the Best
Declan
-Original Message-
From: Matt Kennedy [mailto:stinkym...@gmail.com] 
Sent: Tuesday, October 11, 2011 10:09 AM
To: dev@cassandra.apache.org
Subject: Re: REST API?

I have one based on restlet: https://github.com/stinkymatt/Helena

On Mon, Oct 10, 2011 at 9:12 PM, Brian O'Neill 
wrote:
> My team desperately needs a REST API for Cassandra.
>
> I saw the following:
> http://code.google.com/p/restish/
> from
>
http://crlog.info/2011/01/29/restish-wrapper-for-hectorcassandra-data-manipu
lation/
>
> But it appears to have little activity and documentation.
>
> That lead me to start work on a contrib/rest module, but before I get to
far
> I wanted to ask if there was any effort underway for a REST Server/API.
> If not, I'll continue developing the REST server.  Any preference for a
REST
> stack?  (JAX-RS on Apache-CXF?  Raw Servlets? Netty? etc.)
>
> Until I hear back, I'll continue with the JAX-RS / Apache CXF
implementation
> I have cooking.
>
> -brian
>
> --
> Brian ONeill
> Lead Architect, Health Market Science (http://healthmarketscience.com)
> mobile:215.588.6024
> blog: http://weblogs.java.net/blog/boneill42/
> blog: http://brianoneill.blogspot.com/
>



Re: [VOTE] Release Apache Cassandra 1.0.0 (Final) - Strike 2

2011-10-11 Thread Brandon Williams
On Mon, Oct 10, 2011 at 11:24 AM, Sylvain Lebresne  wrote:
> As said while closing previous vote, CASSANDRA-3338 felt important enough to
> warrant a reroll. So here it is: I propose the following artifacts for release
> as 1.0.0 (those are the same as the previous + the patch for CASSANDRA-3338
> and a one line fix to the build file so that it picks the right version of
> snappy-java from maven central).

Unfortunately, I think
https://issues.apache.org/jira/browse/CASSANDRA-3346 is a regression
that will warrant another re-roll. :(

Third time's the charm?

-Brandon


Re: [VOTE CLOSE] Release Apache Cassandra 1.0.0 (Final) - Strike 2

2011-10-11 Thread Sylvain Lebresne
Alright, that sucks. But with 3338, 3346 and 3345 (that is kind of a
regression with
respect to what the changelog says), I'm closing this vote and will
start a new in a jiff.

Sorry everyone.

--
Sylvain

On Tue, Oct 11, 2011 at 4:53 PM, Brandon Williams  wrote:
> On Mon, Oct 10, 2011 at 11:24 AM, Sylvain Lebresne  
> wrote:
>> As said while closing previous vote, CASSANDRA-3338 felt important enough to
>> warrant a reroll. So here it is: I propose the following artifacts for 
>> release
>> as 1.0.0 (those are the same as the previous + the patch for CASSANDRA-3338
>> and a one line fix to the build file so that it picks the right version of
>> snappy-java from maven central).
>
> Unfortunately, I think
> https://issues.apache.org/jira/browse/CASSANDRA-3346 is a regression
> that will warrant another re-roll. :(
>
> Third time's the charm?
>
> -Brandon
>


[VOTE] Release Apache Cassandra 1.0.0 (Final) - Strike 3

2011-10-11 Thread Sylvain Lebresne
Let's hope third times will be the charm. With #3343, #3345 and #3346 in, I
propose the following artifacts for release as 1.0.0.

SVN: 
https://svn.apache.org/repos/asf/cassandra/branches/cassandra-1.0.0@r1181820
Artifacts: 
https://repository.apache.org/content/repositories/orgapachecassandra-055/org/apache/cassandra/apache-cassandra/1.0.0/
Staging repository:
https://repository.apache.org/content/repositories/orgapachecassandra-055/

The artifacts as well as the debian package are also available here:
http://people.apache.org/~slebresne/

The vote will be open for 72 hours (longer if needed).

[1]: http://goo.gl/tNca8 (CHANGES.txt)
[2]: http://goo.gl/qVAIU (NEWS.txt)


Re: [VOTE] Release Apache Cassandra 1.0.0 (Final) - Strike 2

2011-10-11 Thread Todd Burruss
That was exactly the problem, thx.  (I'm starting a new thread to chat
about it)

On 10/11/11 6:31 AM, "Sylvain Lebresne"  wrote:

>@Todd You're likely doing something wrong with your ByteBuffers. It's
>*very* easy
>to screw up with those.
>
>--
>Sylvain
>
>On Tue, Oct 11, 2011 at 7:30 AM, Todd Burruss 
>wrote:
>> This is a bit preliminary, but wanted to get this to you guys knowing
>>the
>> vote is in progress 
>>
>> using these artifacts I am seeing the following exception on restart.
>> (also with RC1 and RC2.)  the only interesting tidbit is that it seems
>>to
>> only happen when writing via direct calls to StorageProxy.  I can't
>>quite
>> compare apples to apples, but if I only write via Thrift interface,
>>replay
>> of the commitlog works.  Write via StorageProxy (but a different CF than
>> via Thrift) the replay throws exception.
>>
>>
>>
>> INFO 22:06:50,671 Replaying
>> /var/lib/cassandra/commitlog/CommitLog-1318309128835.log,
>> /var/lib/cassandra/commitlog/CommitLog-1318309569302.log
>>  INFO 22:06:50,700 Finished reading
>> /var/lib/cassandra/commitlog/CommitLog-1318309128835.log
>> ERROR 22:06:50,702 Exception encountered during startup
>> org.apache.cassandra.db.ColumnSerializer$CorruptColumnException: invalid
>> column name length 0
>>at
>> 
>>org.apache.cassandra.db.ColumnSerializer.deserialize(ColumnSerializer.jav
>>a:
>> 89)
>>at
>> 
>>org.apache.cassandra.db.ColumnSerializer.deserialize(ColumnSerializer.jav
>>a:
>> 36)
>>at
>> 
>>org.apache.cassandra.db.ColumnFamilySerializer.deserializeColumns(ColumnF
>>am
>> ilySerializer.java:143)
>>at
>> 
>>org.apache.cassandra.db.ColumnFamilySerializer.deserializeColumns(ColumnF
>>am
>> ilySerializer.java:135)
>>at
>> 
>>org.apache.cassandra.db.ColumnFamilySerializer.deserialize(ColumnFamilySe
>>ri
>> alizer.java:128)
>>at
>> 
>>org.apache.cassandra.db.RowMutation$RowMutationSerializer.deserialize(Row
>>Mu
>> tation.java:404)
>>at 
>>org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:284)
>>at 
>>org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:171)
>>at
>> 
>>org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassan
>>dr
>> aDaemon.java:196)
>>at
>> 
>>org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCas
>>sa
>> ndraDaemon.java:337)
>>at
>> 
>>org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:106
>>)
>> org.apache.cassandra.db.ColumnSerializer$CorruptColumnException: invalid
>> column name length 0
>>at
>> 
>>org.apache.cassandra.db.ColumnSerializer.deserialize(ColumnSerializer.jav
>>a:
>> 89)
>>at
>> 
>>org.apache.cassandra.db.ColumnSerializer.deserialize(ColumnSerializer.jav
>>a:
>> 36)
>>at
>> 
>>org.apache.cassandra.db.ColumnFamilySerializer.deserializeColumns(ColumnF
>>am
>> ilySerializer.java:143)
>>at
>> 
>>org.apache.cassandra.db.ColumnFamilySerializer.deserializeColumns(ColumnF
>>am
>> ilySerializer.java:135)
>>at
>> 
>>org.apache.cassandra.db.ColumnFamilySerializer.deserialize(ColumnFamilySe
>>ri
>> alizer.java:128)
>>at
>> 
>>org.apache.cassandra.db.RowMutation$RowMutationSerializer.deserialize(Row
>>Mu
>> tation.java:404)
>>at 
>>org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:284)
>>at 
>>org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:171)
>>at
>> 
>>org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassan
>>dr
>> aDaemon.java:196)
>>at
>> 
>>org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCas
>>sa
>> ndraDaemon.java:337)
>>at
>> 
>>org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:106
>>)
>> Exception encountered during startup: invalid column name length 0
>>
>>
>>
>>
>> On 10/10/11 9:24 AM, "Sylvain Lebresne"  wrote:
>>
>>>As said while closing previous vote, CASSANDRA-3338 felt important
>>>enough
>>>to
>>>warrant a reroll. So here it is: I propose the following artifacts for
>>>release
>>>as 1.0.0 (those are the same as the previous + the patch for
>>>CASSANDRA-3338
>>>and a one line fix to the build file so that it picks the right version
>>>of
>>>snappy-java from maven central).
>>>
>>>SVN:
>>>https://svn.apache.org/repos/asf/cassandra/branches/cassandra-1.0.0@r118
>>>09
>>>70
>>>Artifacts:
>>>https://repository.apache.org/content/repositories/orgapachecassandra-04
>>>6/
>>>org/apache/cassandra/apache-cassandra/1.0.0/
>>>Staging repository:
>>>https://repository.apache.org/content/repositories/orgapachecassandra-04
>>>6/
>>>
>>>The artifacts as well as the debian package are also available here:
>>>http://people.apache.org/~slebresne/
>>>
>>>The vote will be open for 72 hours (longer if needed).
>>>
>>>[1]: http://goo.gl/JB2NL (CHANGES.txt)
>>>[2]: http://goo.gl/x6gTC (NEWS.txt)
>>
>>



ByteBuffers and StorageProxy

2011-10-11 Thread Todd Burruss
My recent bug was that I was sending a zero length ByteBuffer (because I forgot 
to flip) for a column name.  The problem I have is that the insert was accepted 
by the server.  Should an exception be thrown?  The end result of allowing the 
insert is that the server will not restart if the data is still in the commit 
log (and maybe later too, not sure).



Re: ByteBuffers and StorageProxy

2011-10-11 Thread Jonathan Ellis
These checks are done in ThriftValidation. If you decide to use StorageProxy
directly, the training wheels are off.
On Oct 11, 2011 11:26 AM, "Todd Burruss"  wrote:

> My recent bug was that I was sending a zero length ByteBuffer (because I
> forgot to flip) for a column name.  The problem I have is that the insert
> was accepted by the server.  Should an exception be thrown?  The end result
> of allowing the insert is that the server will not restart if the data is
> still in the commit log (and maybe later too, not sure).
>
>


Re: ByteBuffers and StorageProxy

2011-10-11 Thread Edward Capriolo
On Tue, Oct 11, 2011 at 12:25 PM, Todd Burruss  wrote:

> My recent bug was that I was sending a zero length ByteBuffer (because I
> forgot to flip) for a column name.  The problem I have is that the insert
> was accepted by the server.  Should an exception be thrown?  The end result
> of allowing the insert is that the server will not restart if the data is
> still in the commit log (and maybe later too, not sure).
>
>
You may not have hit this at the thrift layer, because the AbstractTypes
have validation methods. Since StorageProxy is the "expert" interface having
redundant checks might cause code bloat. Open a jira and put in the patch.
The worse that can happen is it gets -1 ed.


Re: REST API?

2011-10-11 Thread Brian O'Neill
To give everyone an update...

I was able to take what Gary had and update it to run on trunk.
I like the native integration, as opposed to layering it on top of Hector.
 It's working out well.
I layered in JAX-RS to replace the hand parsing of the url, and the
handlers.
I have reads and writes working through the StorageProxy, but I think I'm
going to raise it up one layer to take advantage of ThriftValidations.
(but still using direct method invocation instead of the thift client)
I added unit tests for the read/write of columns.

I'm going to add a few other operations (add/drop keyspace, add/drop CF).
Then it should be in a state where I can share it.

-brian



On Mon, Oct 10, 2011 at 10:06 PM, Jeremy Hanna
wrote:

> Brian,
>
> If you end up doing something with the rest api and making it
> available/open source, please post again either here or on the user list.  I
> think others would be interested and may contribute to it.
>
> Cheers,
>
> Jeremy
>
> On Oct 10, 2011, at 8:42 PM, Brian O'Neill wrote:
>
> > Thanks Gary. Perfect.  Checking it out now.
> >
> > Performance isn't much of a concern for us through the REST interface.
>  We
> > are using the Hadoop/PIG integration to do the heavy lifting.  This will
> be
> > mostly for reads and small number of writes.
> >
> > I'll definitely give this a try.  Thanks again.  I'll let you know how it
> > turns out.
> >
> > -brian
> >
> > On Mon, Oct 10, 2011 at 9:35 PM, Gary Dusbabek 
> wrote:
> >
> >> It turns out that it is pretty easy (or it was a year ago) to replace
> >> the native Cassandra transport with your own.  I wrote about it on my
> >> blog (http://www.onemanclapping.org/2010/09/restful-cassandra.html),
> >> using REST as an example.
> >>
> >>
> >> On Mon, Oct 10, 2011 at 20:12, Brian O'Neill 
> >> wrote:
> >>> My team desperately needs a REST API for Cassandra.
> >>>
> >>> I saw the following:
> >>> http://code.google.com/p/restish/
> >>> from
> >>>
> >>
> http://crlog.info/2011/01/29/restish-wrapper-for-hectorcassandra-data-manipulation/
> >>>
> >>> But it appears to have little activity and documentation.
> >>>
> >>> That lead me to start work on a contrib/rest module, but before I get
> to
> >> far
> >>> I wanted to ask if there was any effort underway for a REST Server/API.
> >>> If not, I'll continue developing the REST server.  Any preference for a
> >> REST
> >>> stack?  (JAX-RS on Apache-CXF?  Raw Servlets? Netty? etc.)
> >>>
> >>> Until I hear back, I'll continue with the JAX-RS / Apache CXF
> >> implementation
> >>> I have cooking.
> >>>
> >>> -brian
> >>>
> >>> --
> >>> Brian ONeill
> >>> Lead Architect, Health Market Science (http://healthmarketscience.com)
> >>> mobile:215.588.6024
> >>> blog: http://weblogs.java.net/blog/boneill42/
> >>> blog: http://brianoneill.blogspot.com/
> >>>
> >>
> >
> >
> >
> > --
> > Brian ONeill
> > Lead Architect, Health Market Science (http://healthmarketscience.com)
> > mobile:215.588.6024
> > blog: http://weblogs.java.net/blog/boneill42/
> > blog: http://brianoneill.blogspot.com/
>
>


-- 
Brian ONeill
Lead Architect, Health Market Science (http://healthmarketscience.com)
mobile:215.588.6024
blog: http://weblogs.java.net/blog/boneill42/
blog: http://brianoneill.blogspot.com/