A simple Cassandra CLI in Python with readline support

2010-05-01 Thread Shuge Lee
Hi all:

I write a simple Cassandra CLI in Python with readline support,

FEATURES

   - inherited all standard Apache Cassandra CLI features
   - readline


for more information, see http://github.com/shuge/shuge-cassandra .

-- 
Shuge Lee | Lee Li


Build failed in Hudson: Cassandra #422

2010-05-01 Thread Apache Hudson Server
See 

Changes:

[jbellis] friendlier message when stress.py doesn't need to create Keyspace1 
b/c it already exists.  patch by jbellis

[jbellis] update stress.py for keyspaceless api.  patch by Brandon Williams; 
reviewed by jbellis for CASSANDRA-1033

[jbellis] merge from 0.6

--
[...truncated 1189 lines...]
[junit] Cobertura: Saved information on 779 classes.
[junit] Testsuite: org.apache.cassandra.db.RemoveColumnFamilyTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.544 sec
[junit] 
[junit] Cobertura: Loaded information on 779 classes.
[junit] Cobertura: Saved information on 779 classes.
[junit] Testsuite: org.apache.cassandra.db.RemoveColumnFamilyWithFlush1Test
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.638 sec
[junit] 
[junit] Cobertura: Loaded information on 779 classes.
[junit] Cobertura: Saved information on 779 classes.
[junit] Testsuite: org.apache.cassandra.db.RemoveColumnFamilyWithFlush2Test
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.819 sec
[junit] 
[junit] Cobertura: Loaded information on 779 classes.
[junit] Cobertura: Saved information on 779 classes.
[junit] Testsuite: org.apache.cassandra.db.RemoveColumnTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.798 sec
[junit] 
[junit] Cobertura: Loaded information on 779 classes.
[junit] Cobertura: Saved information on 779 classes.
[junit] Testsuite: org.apache.cassandra.db.RemoveSubColumnTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.783 sec
[junit] 
[junit] Cobertura: Loaded information on 779 classes.
[junit] Cobertura: Saved information on 779 classes.
[junit] Testsuite: org.apache.cassandra.db.RemoveSuperColumnTest
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 1.123 sec
[junit] 
[junit] Cobertura: Loaded information on 779 classes.
[junit] Cobertura: Saved information on 779 classes.
[junit] Testsuite: org.apache.cassandra.db.RowTest
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.492 sec
[junit] 
[junit] Cobertura: Loaded information on 779 classes.
[junit] Cobertura: Saved information on 779 classes.
[junit] Testsuite: org.apache.cassandra.db.SuperColumnTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.148 sec
[junit] 
[junit] Cobertura: Loaded information on 779 classes.
[junit] Cobertura: Saved information on 779 classes.
[junit] Testsuite: org.apache.cassandra.db.SystemTableTest
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.549 sec
[junit] 
[junit] Cobertura: Loaded information on 779 classes.
[junit] Cobertura: Saved information on 779 classes.
[junit] Testsuite: org.apache.cassandra.db.TableTest
[junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 4.573 sec
[junit] 
[junit] Cobertura: Loaded information on 779 classes.
[junit] Cobertura: Saved information on 779 classes.
[junit] Testsuite: org.apache.cassandra.db.TimeSortTest
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 5.082 sec
[junit] 
[junit] Cobertura: Loaded information on 779 classes.
[junit] Cobertura: Saved information on 779 classes.
[junit] Testsuite: org.apache.cassandra.db.commitlog.CommitLogHeaderTest
[junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0.5 sec
[junit] 
[junit] Cobertura: Loaded information on 779 classes.
[junit] Cobertura: Saved information on 779 classes.
[junit] Testsuite: org.apache.cassandra.db.marshal.TypeCompareTest
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.175 sec
[junit] 
[junit] Cobertura: Loaded information on 779 classes.
[junit] Cobertura: Saved information on 779 classes.
[junit] Testsuite: org.apache.cassandra.dht.BootStrapperTest
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 1.633 sec
[junit] 
[junit] Cobertura: Loaded information on 779 classes.
[junit] Cobertura: Saved information on 779 classes.
[junit] Testsuite: org.apache.cassandra.dht.BoundsTest
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.533 sec
[junit] 
[junit] Cobertura: Loaded information on 779 classes.
[junit] Cobertura: Saved information on 779 classes.
[junit] Testsuite: org.apache.cassandra.dht.ByteOrderedPartitionerTest
[junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 10.429 sec
[junit] 
[junit] Cobertura: Loaded information on 779 classes.
[junit] Cobertura: Saved information on 779 classes.
[junit] Testsuite: 
org.apache.cassandra.dht.CollatingOrderPreservingPartitionerTest
[junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 12.379 sec
[junit] 
[junit] Cobertura: Loaded information

Re: how to delete data

2010-05-01 Thread Ran Tavory
alright, I've uploaded another patch with these updates:

https://issues.apache.org/jira/secure/attachment/12443391/CASSANDRA-531.patch

In this patch I completed all the thrift wiring work, including internal
messaging to all hosts in the cluster.
The patch includes all previous changes, no need to use the previous
patches.
I've changed the truncate method definition in cassandra.thrift and removed
the timestamp from the truncation signature since it's not used.
More changes are in the patch, including system test, thrift and messaging
implementation, taking a snapshot and deleting the actual files.

TODO:
Add truncate to the JMX interface
Add truncate to nodetool
Add system tests to test nodetool + JMX


On Wed, Apr 28, 2010 at 2:53 PM, Gary Dusbabek  wrote:

> You bet.  Take a look at CFS.snapshot().  You basically supply a name
> and a hard link is created.
>
> Gary.
>
> On Wed, Apr 28, 2010 at 06:49, Ran Tavory  wrote:
> > Thanks Gary, can you send a code pointer how snapshot is done?
> >
> > On Wed, Apr 28, 2010 at 2:46 PM, Gary Dusbabek 
> wrote:
> >>
> >> I think it's in the right direction.  You've handled the memtable,
> >> sstables and commit log.  Other than what's listed in the todos, I
> >> can't think of anything else.
> >>
> >> As for the files, it's probably best to snapshot before truncating.
> >> That's the approach I was encouraged to take for the DROP CF
> >> operation.
> >>
> >> Gary.
> >>
> >> On Wed, Apr 28, 2010 at 03:59, Ran Tavory  wrote:
> >> > Finally I found the time to start this work...
> >> > It's half baked, but I listed all the missing parts so I'll continue
> the
> >> > work if the patch is good so far. No need to apply the patch, just
> have
> >> > look
> >> > and lmk if I'm at the right direction
> >> >
> >> >
> https://issues.apache.org/jira/secure/attachment/12443055/CASSANDRA-531.patch
> >> >
> >> >
> >> > <
> https://issues.apache.org/jira/secure/attachment/12443055/CASSANDRA-531.patch
> >
> >> > Thanks
> >> >
> >> > On Thu, Mar 25, 2010 at 9:32 PM, Jonathan Ellis 
> >> > wrote:
> >> >
> >> >> Commented on the Jira issue.
> >> >>
> >> >> Curious how badly out of date that patch is now. :)
> >> >>
> >
> >
>