[
https://issues.apache.org/jira/browse/CASSANDRA-4091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13240650#comment-13240650
]
Anthony Molinaro commented on CASSANDRA-4091:
---------------------------------------------
Hi, I'm that "active" erlang maintainer :). I'll try to see if I can
reproduce, but I haven't played with cassandra in a while. It would help if
you happen to have a config and script to load cassandra, and maybe the erlang
code to query it (the snippet above probably works if I have the config and
data loaded).
> 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