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 (Commented) (JIRA)" <ji...@apache.org> on 2012/03/27 20:57:28 UTC

[jira] [Commented] (CASSANDRA-4091) multiget_slice thrift interface always returns empty list in erlang

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

Jonathan Ellis commented on CASSANDRA-4091:
-------------------------------------------

multiget_slice is pretty well-tested, so I suspect there's a problem with your code.

I can't read erlang but if you can reproduce in Python maybe I could spot the problem.
                
> multiget_slice thrift interface always returns empty list in erlang
> -------------------------------------------------------------------
>
>                 Key: CASSANDRA-4091
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4091
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.0.6, 1.0.8
>         Environment: OS: tried on os x lion and fedora 16
> thrift: 0.8.0
> cassandra: tried apache cassandra 1.0.6 and datastax 1.0.8
> erlang: R14B04
>            Reporter: varnitk
>
> multiget_slice doesn't work in erlang and always returns an empty list, however multiget_count does for the same set of keys. Sample code:
> Keys = [<<"key1">>, <<"key2">>],
> ColumnParent = #columnParent{column_family=ColumnFamily},                                                                                           
> SliceRange = #sliceRange{start="", finish="", reversed=false, count=2147483647},
> SlicePredicate = #slicePredicate{slice_range=SliceRange, column_names=undefined},
> {ok, Conn} = thrift_client_util:new(Host, Port, cassandra_thrift, [{framed, true}]), ok,
> {Conn2, {ok, ok}} = thrift_client:call(Conn, set_keyspace, [Keyspace]),
> {NewCon, Response} = thrift_client:call(Conn2, multiget_slice, [Keys, ColumnParent, SlicePredicate, 1]),
> Response: {ok, []}
> Please fix.

--
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