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

Jeff Jirsa commented on CASSANDRA-13957:
----------------------------------------

The assertion 
[is|https://github.com/apache/cassandra/blob/cassandra-3.0.14/src/java/org/apache/cassandra/db/rows/Rows.java#L61-L70]:

{code}
    /**
     * Collect statistics on a given row.
     *
     * @param row the row for which to collect stats.
     * @param collector the stats collector.
     * @return the total number of cells in {@code row}.
     */
    public static int collectStats(Row row, PartitionStatisticsCollector 
collector)
    {
        assert !row.isEmpty();

{code}

Something in your sstable is in a state we don't expect, or don't handle 
properly. There were a bunch of fixes that went into 3.0.15, first step may be 
to try that instead of 3.0.14 (except you're on DSE, so I guess the real first 
step is probably to open a DSE support ticket, if I'm being honest, because we 
can't really be certain what's going on in the DSE version). If the newest 
3.0.15 doesn't work, the next option would be to upload the sstable that 
triggers this bug, and the schema. For some people that's really hard to do 
(privacy, company IP, personal info, etc), so I dont know if that's an option 
for you, but we need more information to debug it.

> upgradesstables fails after upgrading from 2.1.x to 3.0.14
> ----------------------------------------------------------
>
>                 Key: CASSANDRA-13957
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13957
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Dan Priscornic
>            Priority: Major
>
> After upgrading DSE from 4.8.14 (cassandra 2.1.18.1463) to 5.0.10 (cassandra 
> 3.0.14.1862) I ran nodetool upgradesstables and it fails with the following 
> stack trace:
> {code:java}
> # nodetool -u cassandra -pwf /etc/dse/cassandra/jmxremote.password 
> upgradesstables
> error: null
> -- StackTrace --
> java.lang.AssertionError
>       at org.apache.cassandra.db.rows.Rows.collectStats(Rows.java:70)
>       at 
> org.apache.cassandra.io.sstable.format.big.BigTableWriter$StatsCollector.applyToRow(BigTableWriter.java:197)
>       at org.apache.cassandra.db.transform.BaseRows.hasNext(BaseRows.java:137)
>       at 
> org.apache.cassandra.db.ColumnIndex$Builder.build(ColumnIndex.java:111)
>       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:125)
>       at 
> org.apache.cassandra.db.compaction.writers.DefaultCompactionWriter.realAppend(DefaultCompactionWriter.java:57)
>       at 
> org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.append(CompactionAwareWriter.java:109)
>       at 
> org.apache.cassandra.db.compaction.CompactionTask.runMayThrow(CompactionTask.java:205)
>       at 
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
>       at 
> org.apache.cassandra.db.compaction.CompactionTask.executeInternal(CompactionTask.java:99)
>       at 
> org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:61)
>       at 
> org.apache.cassandra.db.compaction.CompactionManager$5.execute(CompactionManager.java:427)
>       at 
> org.apache.cassandra.db.compaction.CompactionManager$2.call(CompactionManager.java:314)
>       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 
> org.apache.cassandra.concurrent.NamedThreadFactory.lambda$threadLocalDeallocator$0(NamedThreadFactory.java:79)
>       at 
> org.apache.cassandra.concurrent.NamedThreadFactory$$Lambda$6/61137731.run(Unknown
>  Source)
>       at java.lang.Thread.run(Thread.java:745)
> {code}
> The bug seems similar to CASSANDRA-13320 which says it should be fixed in 
> cassandra 3.0.13 but does not look fixed in 3.0.14



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to