[ 
https://issues.apache.org/jira/browse/CASSANDRA-1204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mason Bryant updated CASSANDRA-1204:
------------------------------------

    Attachment: cli_new_methods5.diff

>> There are still a lot of unrelated changes here (mostly things like 
>> whitespace, brace placement, etc). If you are not putting these patches 
>> together with a VCS, then I'll accept that this time, but try and avoid that 
>> going forward since it makes reviewing more difficult and the history less 
>> concise.
    No problem, removed them all with the exception of a couple bracket 
placement changes that were adjacent to code I was touching anyway.
 
>> You added the column family name to the maps returned in 
>> describe_keyspace(), which unless I'm missing something is redundant since 
>> the outer map is keyed by column family name.
     Thanks, my mistake. Removed.

>> The main help synopsis is wrong (wasn't updated for the last command syntax 
>> changes you made).
    Corrected. This involved some reformatting.

>> Help text should wrap at some standardized column width. That has been 80 
>> chars and while I'd personally like to see us keep it there, something wider 
>> is possible so long as it is consistent.
     Ok, I've put in a bunch more wrapping, should all be wrapping at 80 chars 
now.
 
>>  I'm also not a fan of the conditionals with regular expressions used for 
>> drilling down to command specific help. It would be better if this were 
>> parsed with antlr like everything else, and added to the command completer.
     added to the command completer
     replaced the stuff using regex with more ANTLR in Cli.g and a switch 
statement.
 
>> I'm not sure what to do with the tests you have here. On the one hand, I'd 
>> love to have tests, but on the other, the need to have an instance already 
>> running (separately started) is kind of a deal-breaker.
    OK, like I said I don't see how they'd fit in either. Consider them 
un-submitted.

Also: enable strict reads in CliMain.java and writes to be consistent with 
http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/thrift/CassandraDaemon.java?r1=979438&r2=979437&pathrev=979438


> CliClient Support for add, drop, and rename should be added for keyspace and 
> column family
> ------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-1204
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1204
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Tools
>    Affects Versions: 0.7 beta 1
>            Reporter: Mason Bryant
>            Priority: Minor
>             Fix For: 0.7.0
>
>         Attachments: cli_new_methods2.diff, cli_new_methods3.diff, 
> cli_new_methods4.diff, cli_new_methods5.diff, cli_unit_tests.diff, 
> cli_unit_tests2.diff
>
>
> Should add support for the add, drop, and rename operations to keyspace and 
> column family in the CliClient.
> Eg:
> add keyspace <keyspace>                                      Add a new 
> keyspace.
> add column family <cf>[comparator]                      Add a new column 
> family.
> drop keyspace <keyspace>                                      Delete a 
> keyspace.
> drop column family <cf>                                  Delete a column 
> family.
> rename keyspace <keyspace>=<keyspace_new_name>                Rename a 
> keyspace.
> rename column family <name>=<new_name>                   Rename a column 
> family.
> Note: I have patch built for this, but drop keyspace corrupts the schema and 
> prevents the node from restarting due to a bug elsewhere (see: CASSANDRA-1203)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to