cassandra unit test

2016-09-05 Thread Stone Fang
Call QueryProcessor.execute method to insert data into table in cassandra unit test file. public static UntypedResultSet execute(String query, ConsistencyLevel cl, Object... values) throws RequestExecutionException { return execute(query, cl, internalQueryState(), values); }

Fwd: Hintedhandoff mutation

2016-08-17 Thread Stone Fang
, but probably safe to look at the created time, HHs tend to be older. Chris On Wed, Aug 17, 2016 at 5:02 AM, Stone Fang wrote: > Hi All, > > I want to differ hintedhandoff mutation and normal write mutation when i > receive a mutation. > > how to get this in cassandra source c

cassandra archive data

2016-06-30 Thread Stone Fang
Hi All, I want to archive cassandra data.have seen a ticket on this. https://issues.apache.org/jira/browse/CASSANDRA-8460 but I think there are still some issues may be caused by this solution. Q1.from application perspective,we rarely used these archived data, but when scale up cluster,add node