cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gábor Auth (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-10743) Failed upgradesstables (upgrade from 2.2.2 to 3.0.0)
Date Fri, 20 Nov 2015 22:58:11 GMT

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

Gábor Auth commented on CASSANDRA-10743:
----------------------------------------

Hmm... as I see, the issue is not DDL specific, I've found old (2.x?) 'la-*' files in some
folder of tables which failed during the upgrade:
{code}
[cassandra@dc01-rack01-cass02 workqueueitems_by_city-9873aa1082c611e48defa5ddfeca06b6]$ ls
-l
total 80
drwxr-xr-x 2 cassandra cassandra 4096 Oct 12 14:12 backups
-rw-r--r-- 4 cassandra cassandra   43 Nov 19 22:55 la-1542-big-CompressionInfo.db
-rw-r--r-- 4 cassandra cassandra  156 Nov 19 22:55 la-1542-big-Data.db
-rw-r--r-- 4 cassandra cassandra   10 Nov 19 22:55 la-1542-big-Digest.adler32
-rw-r--r-- 4 cassandra cassandra  176 Nov 19 22:55 la-1542-big-Filter.db
-rw-r--r-- 4 cassandra cassandra   60 Nov 19 22:55 la-1542-big-Index.db
-rw-r--r-- 4 cassandra cassandra 4470 Nov 20 20:23 la-1542-big-Statistics.db
-rw-r--r-- 4 cassandra cassandra  120 Nov 19 22:55 la-1542-big-Summary.db
-rw-r--r-- 4 cassandra cassandra   94 Nov 19 22:55 la-1542-big-TOC.txt
-rw-r--r-- 1 cassandra cassandra   51 Nov 20 22:48 ma-1562-big-CompressionInfo.db
-rw-r--r-- 1 cassandra cassandra 1114 Nov 20 22:48 ma-1562-big-Data.db
-rw-r--r-- 1 cassandra cassandra   10 Nov 20 22:48 ma-1562-big-Digest.crc32
-rw-r--r-- 1 cassandra cassandra  176 Nov 20 22:48 ma-1562-big-Filter.db
-rw-r--r-- 1 cassandra cassandra  481 Nov 20 22:48 ma-1562-big-Index.db
-rw-r--r-- 1 cassandra cassandra 4682 Nov 20 22:48 ma-1562-big-Statistics.db
-rw-r--r-- 1 cassandra cassandra   92 Nov 20 22:48 ma-1562-big-Summary.db
-rw-r--r-- 1 cassandra cassandra   92 Nov 20 22:48 ma-1562-big-TOC.txt
drwxr-xr-x 5 cassandra cassandra 4096 Nov 20 22:48 snapshots
{code}

This table throw an excepcion during scrub/upgradesstables/etc:
{code}
[cassandra@dc01-rack01-cass02 ~]$ /home/cassandra/dsc-cassandra-3.0.0/bin/nodetool upgradesstables
gacivstest20141213 workqueueitems_by_city
error: length is not > 0: 0
-- StackTrace --
java.lang.AssertionError: length is not > 0: 0
        at org.apache.cassandra.utils.ByteBufferUtil.readBytes(ByteBufferUtil.java:408)
        at org.apache.cassandra.io.sstable.metadata.CompactionMetadata$CompactionMetadataSerializer.deserialize(CompactionMetadata.java:93)
        at org.apache.cassandra.io.sstable.metadata.CompactionMetadata$CompactionMetadataSerializer.deserialize(CompactionMetadata.java:73)
        at org.apache.cassandra.io.sstable.metadata.MetadataSerializer.deserialize(MetadataSerializer.java:123)
        at org.apache.cassandra.io.sstable.metadata.MetadataSerializer.deserialize(MetadataSerializer.java:94)
        at org.apache.cassandra.io.sstable.metadata.MetadataSerializer.deserialize(MetadataSerializer.java:102)
        at org.apache.cassandra.io.sstable.format.SSTableReader.getApproximateKeyCount(SSTableReader.java:256)
        at org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.<init>(CompactionAwareWriter.java:62)
        at org.apache.cassandra.db.compaction.writers.DefaultCompactionWriter.<init>(DefaultCompactionWriter.java:51)
        at org.apache.cassandra.db.compaction.CompactionTask.getCompactionAwareWriter(CompactionTask.java:233)
        at org.apache.cassandra.db.compaction.CompactionTask.runMayThrow(CompactionTask.java:174)
        at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
        at org.apache.cassandra.db.compaction.CompactionTask.executeInternal(CompactionTask.java:78)
        at org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:60)
        at org.apache.cassandra.db.compaction.CompactionManager$5.execute(CompactionManager.java:397)
        at org.apache.cassandra.db.compaction.CompactionManager$2.call(CompactionManager.java:292)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
{code}

> Failed upgradesstables (upgrade from 2.2.2 to 3.0.0)
> ----------------------------------------------------
>
>                 Key: CASSANDRA-10743
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10743
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: CentOS Linux release 7.1.1503, OpenJDK Runtime Environment (build
1.8.0_65-b17), DSC Cassandra 3.0.0 (tar.gz)
>            Reporter: Gábor Auth
>         Attachments: schema.ddl.gz
>
>
> {code}
> [cassandra@dc01-rack01-cass01 ~]$ /home/cassandra/dsc-cassandra-3.0.0/bin/nodetool upgradesstables
> error: null
> -- StackTrace --
> java.lang.UnsupportedOperationException
>         at org.apache.cassandra.db.rows.CellPath$EmptyCellPath.get(CellPath.java:143)
>         at org.apache.cassandra.db.marshal.CollectionType$CollectionPathSerializer.serializedSize(CollectionType.java:226)
>         at org.apache.cassandra.db.rows.BufferCell$Serializer.serializedSize(BufferCell.java:325)
>         at org.apache.cassandra.db.rows.UnfilteredSerializer.sizeOfComplexColumn(UnfilteredSerializer.java:297)
>         at org.apache.cassandra.db.rows.UnfilteredSerializer.serializedRowBodySize(UnfilteredSerializer.java:282)
>         at org.apache.cassandra.db.rows.UnfilteredSerializer.serialize(UnfilteredSerializer.java:163)
>         at org.apache.cassandra.db.rows.UnfilteredSerializer.serialize(UnfilteredSerializer.java:108)
>         at org.apache.cassandra.db.ColumnIndex$Builder.add(ColumnIndex.java:144)
>         at org.apache.cassandra.db.ColumnIndex$Builder.build(ColumnIndex.java:112)
>         at org.apache.cassandra.db.ColumnIndex.writeAndBuildIndex(ColumnIndex.java:52)
>         at org.apache.cassandra.io.sstable.format.big.BigTableWriter.append(BigTableWriter.java:149)
>         at org.apache.cassandra.io.sstable.SSTableRewriter.append(SSTableRewriter.java:121)
>         at org.apache.cassandra.db.compaction.writers.DefaultCompactionWriter.realAppend(DefaultCompactionWriter.java:57)
>         at org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.append(CompactionAwareWriter.java:110)
>         at org.apache.cassandra.db.compaction.CompactionTask.runMayThrow(CompactionTask.java:182)
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
>         at org.apache.cassandra.db.compaction.CompactionTask.executeInternal(CompactionTask.java:78)
>         at org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:60)
>         at org.apache.cassandra.db.compaction.CompactionManager$5.execute(CompactionManager.java:397)
>         at org.apache.cassandra.db.compaction.CompactionManager$2.call(CompactionManager.java:292)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message