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

cleanup uses global partitioner to estimate ranges in index sstables

    XMLWordPrintableJSON

Details

    • Low

    Description

      Introduced in CASSANDRA-1404, CleanupTest is showing this on trunk (on stderr, so test doesn't actually fail):

          [junit] java.lang.ClassCastException: org.apache.cassandra.dht.Token$KeyBound cannot be cast to org.apache.cassandra.dht.Token
          [junit]     at org.apache.cassandra.dht.LocalToken.compareTo(LocalToken.java:24)
          [junit]     at org.apache.cassandra.dht.Range$1.compare(Range.java:386)
          [junit]     at org.apache.cassandra.dht.Range$1.compare(Range.java:383)
          [junit]     at java.util.Arrays.mergeSort(Arrays.java:1270)
          [junit]     at java.util.Arrays.sort(Arrays.java:1210)
          [junit]     at java.util.Collections.sort(Collections.java:159)
          [junit]     at org.apache.cassandra.dht.Range.normalize(Range.java:382)
          [junit]     at org.apache.cassandra.io.sstable.SSTableReader.getSampleIndexesForRanges(SSTableReader.java:570)
          [junit]     at org.apache.cassandra.io.sstable.SSTableReader.estimatedKeysForRanges(SSTableReader.java:549)
          [junit]     at org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy.getNextBackgroundTask(SizeTieredCompactionStrategy.java:111)
          [junit]     at org.apache.cassandra.db.compaction.CompactionManager$1.runMayThrow(CompactionManager.java:136)
          [junit]     at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:26)
          [junit]     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
          [junit]     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
          [junit]     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
          [junit]     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
          [junit]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
          [junit]     at java.lang.Thread.run(Thread.java:662)
      

      This doesn't happen on the 1.1 branch (less robust test?) but the problem is still there.

      Attachments

        1. 4403.txt
          3 kB
          Jonathan Ellis

        Activity

          People

            jbellis Jonathan Ellis
            jbellis Jonathan Ellis
            Jonathan Ellis
            Yuki Morishita
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: