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.8, 1.0.6
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