You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Pavel Yaskevich (JIRA)" <ji...@apache.org> on 2011/07/15 14:36:00 UTC

[jira] [Commented] (CASSANDRA-2896) Del command doesn't work in cli

    [ https://issues.apache.org/jira/browse/CASSANDRA-2896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13065890#comment-13065890 ] 

Pavel Yaskevich commented on CASSANDRA-2896:
--------------------------------------------

Seems like you have a problem with comparator/validator on our CF, that's is why CLI can't delete row. Can you please post your CF schema?

Tested on latest cassandra-0.8 branch.

{noformat}
Connected to: "Test Cluster" on localhost/9160
eWelcome to the Cassandra CLI.

Type 'help;' or '?' for help.
Type 'quit;' or 'exit;' to quit.

[default@unknown] create keyspace ks;
3f54f520-aede-11e0-0000-242d50cf1ffc
Waiting for schema agreement...
... schemas agree across the cluster
[default@unknown] use ks;
Authenticated to keyspace: ks
[default@ks] CREATE COLUMN FAMILY test WITH comparator = UTF8Type AND default_validation_class = UTF8Type AND key_validation_class = UTF8Type;
482df8e0-aede-11e0-0000-242d50cf1ffc
Waiting for schema agreement...
... schemas agree across the cluster
[default@ks] set test[123][123] = 31;
Value inserted.
[default@ks] list test;
Using default limit of 100
-------------------
RowKey: 123
=> (column=123, value=31, timestamp=1310733064224000)

1 Row Returned.
[default@ks] del test[123][123];
column removed.
[default@ks] list test;
Using default limit of 100
-------------------
RowKey: 123

1 Row Returned.
[default@ks]
{noformat}

> Del command doesn't work in cli
> -------------------------------
>
>                 Key: CASSANDRA-2896
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2896
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.8.0
>            Reporter: Joaquin Casares
>            Assignee: Pavel Yaskevich
>             Fix For: 0.8.2
>
>
> [default@unknown] connect localhost/9160;
> Connected to: "Test Cluster" on localhost/9160
> [default@unknown] use test;
> Authenticated to keyspace: test
> [default@test] get test[123][123];    
> => (column=0123, value=31, timestamp=1310576784324000)
> [default@test] del test[123][123];    
> column removed.
> [default@test] get test[123][123];
> => (column=0123, value=31, timestamp=1310576784324000)
> Does the same in 0.8.1 still both times in a single node.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira