cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manoj Kanta Mainali (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-4117) show keyspaces command in cli causes error and does not show keyspaces other than system
Date Thu, 05 Apr 2012 03:50:49 GMT
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

        

Mime
View raw message