You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Yuki Morishita (JIRA)" <ji...@apache.org> on 2014/08/01 22:13:39 UTC

[jira] [Commented] (CASSANDRA-7665) nodetool scrub fails on system schema with UDTs

    [ https://issues.apache.org/jira/browse/CASSANDRA-7665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14082870#comment-14082870 ] 

Yuki Morishita commented on CASSANDRA-7665:
-------------------------------------------

It looks to me that the problem is CollectionType always validates value in native protocol format(CASSANDRA-7208), while scrub wants to validate on disk format through SSTableIdentityIterator.
Prior to CASSANDRA-7208, validation on collection was no-op.

[~thobbs] Any idea how we can fix this?

> nodetool scrub fails on system schema with UDTs
> -----------------------------------------------
>
>                 Key: CASSANDRA-7665
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7665
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: 2.1.0-rc4
>            Reporter: Jonathan Halliday
>            Assignee: Marcus Eriksson
>             Fix For: 2.1.0
>
>         Attachments: 0001-test.patch
>
>
> [apache-cassandra-2.1.0-rc4]$ bin/cqlsh
> Connected to Test Cluster at 127.0.0.1:9042.
> [cqlsh 5.0.1 | Cassandra 2.1.0-rc4 | CQL spec 3.2.0 | Native protocol v3]
> Use HELP for help.
> cqlsh> CREATE KEYSPACE test WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1 };
> cqlsh> use test;
> cqlsh:test> CREATE TYPE point_t (x double, y double);
> cqlsh:test> exit
> [apache-cassandra-2.1.0-rc4]$bin/nodetool scrub
> INFO  12:34:57 Scrubbing SSTableReader(path='/apache-cassandra-2.1.0-rc4/bin/../data/data/system/schema_columnfamilies-45f5b36024bc3f83a3631034ea4fa697/system-schema_columnfamilies-ka-1-Data.db') (34135 bytes)
> INFO  12:34:57 Scrub of SSTableReader(path='/apache-cassandra-2.1.0-rc4/bin/../data/data/system/schema_columnfamilies-45f5b36024bc3f83a3631034ea4fa697/system-schema_columnfamilies-ka-1-Data.db') complete: 2 rows in new sstable and 0 empty (tombstoned) rows dropped
> INFO  12:34:57 Scrubbing SSTableReader(path='/apache-cassandra-2.1.0-rc4/bin/../data/data/system/local-7ad54392bcdd35a684174e047860b377/system-local-ka-5-Data.db') (12515 bytes)
> WARN  12:34:57 Error reading row (stacktrace follows):
> org.apache.cassandra.io.sstable.CorruptSSTableException: org.apache.cassandra.serializers.MarshalException: Not enough bytes to read a set
> 	at org.apache.cassandra.io.sstable.SSTableIdentityIterator.next(SSTableIdentityIterator.java:139) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4]



--
This message was sent by Atlassian JIRA
(v6.2#6252)