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 2015/01/26 22:28:34 UTC

[jira] [Created] (CASSANDRA-8688) Standalone sstableupgrade tool throws exception

Yuki Morishita created CASSANDRA-8688:
-----------------------------------------

             Summary: Standalone sstableupgrade tool throws exception
                 Key: CASSANDRA-8688
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8688
             Project: Cassandra
          Issue Type: Bug
            Reporter: Yuki Morishita
            Assignee: Yuki Morishita
            Priority: Minor
             Fix For: 2.1.3
         Attachments: 0001-remove-size-calculation-from-standalone-sstbaleupgra.patch

Standalone sstableupgrade throws following exception:

{code}
Exception in thread "main" java.lang.AssertionError: Incoherent new size -1 replacing [SSTableReader(path='/cassandra/bin/./../data/data/ks/cf-0f578640a59211e4a5a2ef9f87394ca6/ks-cf-jb-53881-Data.db')] by [] in View(pending_count=0, sstables=[], compacting=[])
at org.apache.cassandra.db.DataTracker$View.newSSTables(DataTracker.java:741)
at org.apache.cassandra.db.DataTracker$View.replace(DataTracker.java:713)
at org.apache.cassandra.db.DataTracker.removeSSTablesFromTracker(DataTracker.java:418)
at org.apache.cassandra.db.DataTracker.markCompactedSSTablesReplaced(
DataTracker.java:273)
	at org.apache.cassandra.db.compaction.Upgrader.upgrade(Upgrader.java:96)
{code}

Upgrader is trying to calculate SSTables size dispite the tool is meant to be used offline.

This is introduced in CASSANDRA-7852 and only affects cassandra 2.1.2.
Online upgrade (nodetool upgradesstables) is not affected.



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