incubator-cassandra-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ellis <jbel...@gmail.com>
Subject Re: Thrift API and SlicePredicate bug?
Date Thu, 13 Aug 2009 12:48:20 GMT
you're giving garbage as a slice predicate.  thrift should error check
that but does not.

https://issues.apache.org/jira/browse/CASSANDRA-308

On Thu, Aug 13, 2009 at 6:04 AM, Sergio Bossa<sergio.bossa@gmail.com> wrote:
> Hi guys,
>
> the following (client) method call:
>
> client.get_slice("Test1",
>                    user_id,
>                    new ColumnParent("CF1", null),
>                    new SlicePredicate());
>
> Gives me an obscure: "org.apache.thrift.TApplicationException:
> Internal error processing get_slice"
>
> However, the following works nice:
>
> client.get_slice("Test1",
>                    user_id,
>                    new ColumnParent("CF1", null),
>                    new
> SlicePredicate(Arrays.asList("name".getBytes("UTF-8")), new
> SliceRange()));
>
> Is that an intended behavior?
> If so, how do I get all columns? Shouldn't it provide a better error message?
>
> Thanks for listening,
> Cheers,
>
> Sergio B.
>
> --
> Sergio Bossa
> Software Passionate and Open Source Enthusiast.
> URL: http://www.linkedin.com/in/sergiob
>

Mime
View raw message