cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-10073) Counter mutation serialization bug
Date Sun, 16 Aug 2015 16:32:45 GMT


Sylvain Lebresne commented on CASSANDRA-10073:

Pushed branch with the fixes [here|] (I'll
update with links to CI results once/if the branch is picked up by cassci).

The reason for the exception is that {{CollectionType.validateCellValue}} is not calling the
proper validation method for it's values (it should call their {{validateCellValue}}). This
is not a particularly new bug, but the only types for which {{validate}} and {{validateCellValue}}
differs are collections (but we don't support nested collections) and counters (for which,
prior to CASSANDRA-8099 were never part of collections -- they can be now if counters are
used in thrift super columns). The first commit fixes that.

Once that was fixed, the test was still failing due to some pretty clear typo in {{ColumnSubselection}}
serialization code, so a 2nd commit fixes that too.

> Counter mutation serialization bug
> ----------------------------------
>                 Key: CASSANDRA-10073
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: T Jake Luciani
>            Assignee: Sylvain Lebresne
>            Priority: Critical
>             Fix For: 3.0 beta 1
> reproduced in dtest super_counter_test:TestSuperCounterClusterRestart.functional_test_2
> {code}
> - Unexpected error deserializing mutation; saved to /tmp/mutation181379301016027337dat
and ignored.  This may be caused by replaying a mutation against a table with the same name
but incompatible schema.  Exception follows:  org.apache.cassandra.serializers.MarshalException:
Expected 8 or 0 byte long (36) \tat org.apache.cassandra.serializers.LongSerializer.validate(
~[main/:na] \tat org.apache.cassandra.db.marshal.AbstractType.validate(
~[main/:na] \tat org.apache.cassandra.db.marshal.CollectionType.validateCellValue(
~[main/:na] \tat org.apache.cassandra.config.ColumnDefinition.validateCellValue(
~[main/:na] \tat org.apache.cassandra.db.rows.AbstractCell.validate(
~[main/:na] \tat org.apache.cassandra.db.rows.ComplexColumnData.validate(
~[main/:na] \tat org.apache.cassandra.db.partitions.PartitionUpdate.validate(
~[main/:na] \tat org.apache.cassandra.db.commitlog.CommitLogReplayer.replayMutation(
[main/:na] \tat org.apache.cassandra.db.commitlog.CommitLogReplayer.replaySyncSection(
[main/:na] \tat org.apache.cassandra.db.commitlog.CommitLogReplayer.recover(
[main/:na] \tat org.apache.cassandra.db.commitlog.CommitLogReplayer.recover(
[main/:na] \tat org.apache.cassandra.db.commitlog.CommitLog.recover( [main/:na]
\tat org.apache.cassandra.db.commitlog.CommitLog.recover( [main/:na] \tat
org.apache.cassandra.service.CassandraDaemon.setup( [main/:na] \tat
org.apache.cassandra.service.CassandraDaemon.activate( [main/:na]
\tat org.apache.cassandra.service.CassandraDaemon.main( [main/:na]
ERROR [main] 2015-08-12 17:36:38,247
> {code}

This message was sent by Atlassian JIRA

View raw message