[
https://issues.apache.org/jira/browse/CASSANDRA-703?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12804729#action_12804729
]
Vijay commented on CASSANDRA-703:
---------------------------------
Hi Jonathan, yes actually i did the following...
first insert
System.currentTimeMillis()
first delete
System.currentTimeMillis() + 5
secound insert
System.currentTimeMillis() + 10
String supcol = "12356";
Client con =
ConnectionCacheUtils.getinstance().getCassandraConnection().getclient();
ColumnPath colpath = new
ColumnPath().setColumn_family("VERSIONS").setSuper_column(supcol.getBytes()).setColumn("1234".getBytes());
con.insert("WBXCDOCUMENT", "vijay", colpath, "test".getBytes(),
System.currentTimeMillis(), 2);
ColumnPath path = new
ColumnPath().setColumn_family("VERSIONS").setSuper_column(supcol.getBytes());
ColumnOrSuperColumn col = con.get("WBXCDOCUMENT", "vijay", path, 2);
assertEquals(col.getSuper_column().getColumns() != null, true);
con.remove("WBXCDOCUMENT", "vijay", path, System.currentTimeMillis() +
5, 2);
con.insert("WBXCDOCUMENT", "vijay", colpath, "test".getBytes(),
System.currentTimeMillis() + 10, 2);
ColumnOrSuperColumn col2 = con.get("WBXCDOCUMENT", "vijay", path, 2);
assertEquals(col2.getSuper_column().getColumns() != null, true);
Regards
Vijay
> Insert, Delete and Insert into a column family doesnt work...
> --------------------------------------------------------------
>
> Key: CASSANDRA-703
> URL: https://issues.apache.org/jira/browse/CASSANDRA-703
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Environment: Linux, Cassandra .5
> Reporter: Vijay
> Assignee: Vijay
> Priority: Minor
> Fix For: 0.5
>
> Attachments: bug-fix-703.txt
>
>
> Here is the code to reproduce the issue...
> ColumnPath colpath = new
> ColumnPath().setColumn_family("VERSIONS").setSuper_column("123".getBytes()).setColumn("1234".getBytes());
> con.insert("WBXCDOCUMENT", "vijay", colpath, "test".getBytes(),
> System.currentTimeMillis(), 2);
> ColumnPath path = new
> ColumnPath().setColumn_family("VERSIONS").setSuper_column("123".getBytes());
> con.remove("WBXCDOCUMENT", "vijay", path, System.currentTimeMillis(),
> 2);
> con.insert("WBXCDOCUMENT", "vijay", colpath, "test".getBytes(),
> System.currentTimeMillis(), 2);
> ColumnOrSuperColumn col = con.get("WBXCDOCUMENT", "vijay", path, 2);
> assertEquals(col.getSuper_column().getColumns() != null, true);
> Expected result, get the column family..... but it throws notfound exception
> which is wrong.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.