Details
-
Bug
-
Status: Resolved
-
Low
-
Resolution: Fixed
-
None
-
Low
Description
Standalone sstableupgrade throws following exception:
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)
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.