cassandra-commits mailing list archives

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

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

Manoj Kanta Mainali commented on CASSANDRA-4117:
------------------------------------------------

I figured out to print the whole stack trace and here it is:


java.lang.IllegalArgumentException
	at java.nio.Buffer.limit(Buffer.java:249)
	at org.apache.cassandra.db.marshal.AbstractCompositeType.getBytes(AbstractCompositeType.java:51)
	at org.apache.cassandra.db.marshal.AbstractCompositeType.getWithShortLength(AbstractCompositeType.java:60)
	at org.apache.cassandra.db.marshal.AbstractCompositeType.getString(AbstractCompositeType.java:140)
	at org.apache.cassandra.cli.CliClient.describeColumnFamily(CliClient.java:2020)
	at org.apache.cassandra.cli.CliClient.describeKeySpace(CliClient.java:1943)
	at org.apache.cassandra.cli.CliClient.executeShowKeySpaces(CliClient.java:1542)
	at org.apache.cassandra.cli.CliClient.executeCLIStatement(CliClient.java:246)
	at org.apache.cassandra.cli.CliMain.processStatementInteractive(CliMain.java:219)
	at org.apache.cassandra.cli.CliMain.main(CliMain.java:346)

                
> 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