Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-13973

IllegalArgumentException in upgradesstables compaction

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: Major
    • Resolution: Unresolved
    • Fix Version/s: 3.0.x, 3.11.x, 4.x
    • Component/s: Compaction
    • Labels:
      None

      Description

      After an upgrade from 2.2.6 to 3.0.15 (sstable version la to mc), when I try to run upgradesstables, most of them upgrade fine but I see the exception below on several nodes, and it doesn't complete.

      CASSANDRA-12717 looks similar but the stack trace is not the same, so I assumed it is not identical. The various nodes this happens on all give the same trace.

      Might be notable that this is an analytics cluster with some large partitions, in the GB size.

      error: Out of range: 7316844981
      -- StackTrace --
      java.lang.IllegalArgumentException: Out of range: 7316844981
      at com.google.common.primitives.Ints.checkedCast(Ints.java:91)
      at org.apache.cassandra.db.RowIndexEntry$IndexedEntry.promotedSize(RowIndexEntry.java:329)
      at org.apache.cassandra.db.RowIndexEntry$Serializer.serialize(RowIndexEntry.java:133)
      at org.apache.cassandra.io.sstable.format.big.BigTableWriter$IndexWriter.append(BigTableWriter.java:409)
      at org.apache.cassandra.io.sstable.format.big.BigTableWriter.afterAppend(BigTableWriter.java:120)
      at org.apache.cassandra.io.sstable.format.big.BigTableWriter.append(BigTableWriter.java:157)
      at org.apache.cassandra.io.sstable.SSTableRewriter.append(SSTableRewriter.java:125)
      at org.apache.cassandra.db.compaction.writers.MaxSSTableSizeWriter.realAppend(MaxSSTableSizeWriter.java:88)
      at org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.append(CompactionAwareWriter.java:109)
      at org.apache.cassandra.db.compaction.CompactionTask.runMayThrow(CompactionTask.java:195)
      at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
      at org.apache.cassandra.db.compaction.CompactionTask.executeInternal(CompactionTask.java:89)
      at org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:61)
      at org.apache.cassandra.db.compaction.CompactionManager$5.execute(CompactionManager.java:424)
      at org.apache.cassandra.db.compaction.CompactionManager$2.call(CompactionManager.java:311)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at org.apache.cassandra.concurrent.NamedThreadFactory.lambda$threadLocalDeallocator$0(NamedThreadFactory.java:79)
      at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                djoshi3 Dinesh Joshi
                Reporter:
                dkinder Dan Kinder
                Reviewer:
                Chris Lohfink
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: