cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Lav (JIRA)" <>
Subject [jira] Updated: (CASSANDRA-954) Exception " malformed input around byte 55" retrieving columns or slices
Date Tue, 06 Apr 2010 21:45:33 GMT


Aaron Lav updated CASSANDRA-954:

    Attachment: sstable2json

I just ran (for i in fields-*-Data.db; do echo $i; /mnt/cassandra/apache-cassandra-0.6.0-rc1/bin/sstable2json
$i  -k 132565089 -x ""; done) and attached the result.

132565089 was the key for which we've most recently encountered the error.  The timestamp
for the data in fields-3097-Data.db is both the largest and matches the timestamp for the
CLI, so I've saved those files.

> Exception " malformed input around byte 55" retrieving
 columns or slices
> --------------------------------------------------------------------------------------------------------
>                 Key: CASSANDRA-954
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.6
>         Environment: Ubuntu Jaunty on EC2 m1.large instance
>            Reporter: Aaron Lav
>         Attachments: sstable2json
> Using cassandra-cli, I get an exception on "get PostingData.fields['146558416']['json']",
but "get PostingData.fields['146558416']" works fine and returns the expected data (a single
column named 'json').  The exception happens on both nodes of a two-node cluster with RF set
to 2.
> This cluster was originally set up as a test and the problem data written with 0.5b2,
so if there was a known bug in that release with these symptoms, please point me to it and
close this.  I didn't notice it until after upgrading to 0.6rc1, but that could be coincidence.
> grepping for 146558416 fields*-Index.db yields three posssible files, and only one seems
to be late enough for the column timestamp: fields-3355-*.db.  That was created by a compaction
(under 0.5b2), according to the log: INFO [COMPACTION-POOL:1] 2010-03-29 04:08:19,652
(line 944) Compacted to /mnt2/cassandra/data/PostingData/fields-3355-Data.db.  17698781375/14295733792
bytes for 4048148 keys.  Time: 943763ms.
> I've changed my code to retrieve slices instead of specifying the column, which is an
adequate workaround.
> Here's the full traceback:
> ERROR [pool-1-thread-29] 2010-04-05 15:43:17,450 (line 1197) Internal
error processing get
> java.lang.RuntimeException: java.util.concurrent.ExecutionException:
malformed input around byte 55
>         at org.apache.cassandra.service.StorageProxy.weakReadLocal(
>         at org.apache.cassandra.service.StorageProxy.readProtocol(
>         at org.apache.cassandra.thrift.CassandraServer.readColumnFamily(
>         at org.apache.cassandra.thrift.CassandraServer.multigetInternal(
>         at org.apache.cassandra.thrift.CassandraServer.get(
>         at org.apache.cassandra.thrift.Cassandra$Processor$get.process(
>         at org.apache.cassandra.thrift.Cassandra$Processor.process(
>         at org.apache.thrift.server.TThreadPoolServer$
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(
>         at java.util.concurrent.ThreadPoolExecutor$
>         at
> Caused by: java.util.concurrent.ExecutionException: malformed
input around byte 55
>         at java.util.concurrent.FutureTask$Sync.innerGet(
>         at java.util.concurrent.FutureTask.get(
>         at org.apache.cassandra.service.StorageProxy.weakReadLocal(
>         ... 10 more
> Caused by: malformed input around byte 55
>         at
>         at
>         at org.apache.cassandra.db.filter.SSTableNamesIterator.<init>(
>         at org.apache.cassandra.db.filter.NamesQueryFilter.getSSTableColumnIterator(
>         at org.apache.cassandra.db.ColumnFamilyStore.getTopLevelColumns(
>         at org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(
>         at org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(
>         at org.apache.cassandra.db.Table.getRow(
>         at org.apache.cassandra.db.SliceByNamesReadCommand.getRow(
>         at org.apache.cassandra.service.StorageProxy$
>         at java.util.concurrent.FutureTask$Sync.innerRun(
>         at
>         ... 3 more
> I'm often around on #cassandra as asl2, if anyone wants more info.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message