cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <>
Subject [jira] [Updated] (CASSANDRA-7287) Pig CqlStorage test fails with IAE
Date Fri, 23 May 2014 08:57:01 GMT


Sylvain Lebresne updated CASSANDRA-7287:

    Attachment: 7287.txt

I'm not sure what "use Cell completely breaks the code" refers to but the stack above is definitively
not related to that. That stack is due to CASSANDRA-6855, and more precisely that AbstractType.compose()
now uses the v3 format for collections and since CqlStorage expect the previous format we
need to special case slightly (which was done for objToListOrSetBB and objToMapBB but I missed
cassandraToObj). Trivial patch attached to fix.

Regarding the "Cell changes", if you think there is a problem you should open a separate issue
with details on what that problem is. But truly, those hadoop and pig classes were using the
internal Column class (though arguably *that* is wrong) and we simply renamed that to Cell
all over the place.

> Pig CqlStorage test fails with IAE
> ----------------------------------
>                 Key: CASSANDRA-7287
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Hadoop, Tests
>            Reporter: Brandon Williams
>            Assignee: Alex Liu
>             Fix For: 2.1 rc1
>         Attachments: 7287.txt
> {noformat}
>     [junit] java.lang.IllegalArgumentException
>     [junit]     at java.nio.Buffer.limit(
>     [junit]     at org.apache.cassandra.utils.ByteBufferUtil.readBytes(
>     [junit]     at org.apache.cassandra.serializers.CollectionSerializer.readValue(
>     [junit]     at org.apache.cassandra.serializers.MapSerializer.deserializeForNativeProtocol(
>     [junit]     at org.apache.cassandra.serializers.MapSerializer.deserializeForNativeProtocol(
>     [junit]     at org.apache.cassandra.serializers.CollectionSerializer.deserialize(
>     [junit]     at org.apache.cassandra.db.marshal.AbstractType.compose(
>     [junit]     at org.apache.cassandra.hadoop.pig.AbstractCassandraStorage.cassandraToObj(
>     [junit]     at org.apache.cassandra.hadoop.pig.CqlStorage.cqlColumnToObj(
>     [junit]     at org.apache.cassandra.hadoop.pig.CqlStorage.getNext(
> {noformat}
> I'm guessing this is caused by CqlStorage passing an empty BB to BBU, but I don't know
if it's pig that's broken or is a deeper issue.

This message was sent by Atlassian JIRA

View raw message