You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Sylvain Lebresne (Resolved) (JIRA)" <ji...@apache.org> on 2012/04/05 09:39:36 UTC

[jira] [Resolved] (CASSANDRA-4117) show keyspaces command in cli causes error and does not show keyspaces other than system

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

Sylvain Lebresne resolved CASSANDRA-4117.
-----------------------------------------

    Resolution: Duplicate

This is a duplicate of CASSANDRA-4093
                
> show keyspaces command in cli causes error and does not show keyspaces other than system
> ----------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-4117
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4117
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.1.0
>            Reporter: Manoj Kanta Mainali
>            Priority: Minor
>
> I have been working with 1.1.0-beta2 version and I am not able to see the created keyspaces via show keyspaces in cli.
> After initiating the cassandra-cli, I did the following
> 1. create keyspace foo;
> 2. use foo;
> 3. create column family foo;
> 4. show keyspaces;
> Only the result for the system keyspace is shown.
> I added some debug statements in the code and I can see that in the executeShowKeySpaces in CliClient, the size of keySpaces retrieved is equal to the number of keyspaces in the cluster,i.e. in my case equal to 2, however only null is displayed after printing the system keyspaces.
> I added a try catch statement around the for loop in the method and printed the exception messages in the cli and got following 
> When printing the exception e itself : 
> java.lang.IllegalArgumentException
> When printing the e.getStackTrace()[0] and e.getStackTrace()[1]:
> java.nio.Buffer.limit(Buffer.java:249)
> org.apache.cassandra.db.marshal.AbstractCompositeType.getBytes(AbstractCompositeType.java:51)
> I would love to post the whole stack trace, but at the moment I am not sure how I can do that through sessionState.out.println

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira