You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jonathan Ellis (JIRA)" <ji...@apache.org> on 2009/03/30 17:26:50 UTC

[jira] Resolved: (CASSANDRA-21) get_columns_in fails when when routed to a node that isn't the home for the key

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

Jonathan Ellis resolved CASSANDRA-21.
-------------------------------------

    Resolution: Fixed

Applied with minor modifications (toString method added to ReadMessage), thanks.

For future reference, it saves time if you can use the Cassandra code style conventions (particularly braces on new lines).  Also Cassandra is using testng, not junit.

> get_columns_in fails when when routed to a node that isn't the home for the key
> -------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-21
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: all
>            Reporter: Sandeep Tata
>         Attachments: patch_readmessage.txt, ReadMessageTest.java
>
>
> get_columns_in fails when the request cannot be satisfied locally.
> What steps will reproduce the problem?
> 1. Insert multiple columns in some row R in a Cassandra cluster that 
> contains more than 1 node.
> 2. Submit a get_columns_in query to a bunch of nodes. Using the python thrift 
> interface, this is something  like: 
> ./Cassandra-remote -h node0:9160 get_columns_in 'Mailbox' 'rowid123' 
> 'HeaderList' "['col1','col2']"
> ./Cassandra-remote -h node1:9160 get_columns_in 'Mailbox' 'rowid123' 
> 'HeaderList' "['col1','col2']"
>  
> I've traced the error to a bug in how ReadMessage.java gets de-serialized. See attached unit-test to reproduce this.
> I'm also attaching a patch that fixes this.

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