You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Manoj Kanta Mainali (Created) (JIRA)" <ji...@apache.org> on 2012/04/05 05:50:49 UTC

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

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

        

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

Posted by "Sylvain Lebresne (Resolved) (JIRA)" <ji...@apache.org>.
     [ 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

        

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

Posted by "Manoj Kanta Mainali (Commented) (JIRA)" <ji...@apache.org>.
    [ 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