Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
-
Normal
Description
Hello,
I downloaded latest cassandra source code from svn trunk. I wanted to test expire data functionality. Using Thrift API, I set timeToLive parameter for each fieldValue, however cassandra ignored it and did not expire any data.
I debugged cassandra's source code and found a bug in src/java/org/apache/cassandra/db/RowMutation.java.
In RowMutation.addColumnOrSuperColumnToRowMutation() method, QueryPath was not setting timeToLive argument. I updated RowMutation.java locally and tested it and then my data expired after 'n' number of seconds.
I wanted to have this fix in the trunk also.
Index: src/java/org/apache/cassandra/db/RowMutation.java
===================================================================
— src/java/org/apache/cassandra/db/RowMutation.java (revision 946222)
+++ src/java/org/apache/cassandra/db/RowMutation.java (working copy)
@@ -295,12 +295,12 @@
{
for (org.apache.cassandra.thrift.Column column : cosc.super_column.columns)
}
else
}
Thanks,
Jignesh