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

org.apache.cassandra.db.compaction.CompactionStrategyManagerBoundaryReloadTest.testReload fails when running with TrieMemtables

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 4.1.x
    • CI
    • None

    Description

      https://app.circleci.com/pipelines/github/dcapwell/cassandra/1771/workflows/1bd920c8-8568-44b3-9e8b-b152a73cf4fc/jobs/15393

      java.lang.RuntimeException: Error setting schema for test (query was: alter table cql_test_keyspace.table_01 with compaction = {'class': 'SizeTieredCompactionStrategy', 'enabled': false})
      	at org.apache.cassandra.cql3.CQLTester.schemaChange(CQLTester.java:1222)
      	at org.apache.cassandra.cql3.CQLTester.alterTable(CQLTester.java:1009)
      	at org.apache.cassandra.db.compaction.CompactionStrategyManagerBoundaryReloadTest.testReload(CompactionStrategyManagerBoundaryReloadTest.java:82)
      Caused by: java.lang.ClassCastException: org.apache.cassandra.dht.ByteOrderedPartitioner$BytesToken cannot be cast to org.apache.cassandra.dht.Murmur3Partitioner$LongToken
      	at org.apache.cassandra.dht.Murmur3Partitioner$1.valueForToken(Murmur3Partitioner.java:68)
      	at org.apache.cassandra.dht.Splitter$WeightedRange.totalTokens(Splitter.java:278)
      	at org.apache.cassandra.dht.Splitter.splitOwnedRanges(Splitter.java:129)
      	at org.apache.cassandra.db.ColumnFamilyStore.localRangeSplits(ColumnFamilyStore.java:1504)
      	at org.apache.cassandra.db.memtable.AbstractShardedMemtable.<init>(AbstractShardedMemtable.java:65)
      	at org.apache.cassandra.db.memtable.TrieMemtable.<init>(TrieMemtable.java:142)
      	at org.apache.cassandra.db.memtable.TrieMemtable$Factory.create(TrieMemtable.java:688)
      	at org.apache.cassandra.db.ColumnFamilyStore.createMemtable(ColumnFamilyStore.java:1375)
      	at org.apache.cassandra.db.ColumnFamilyStore$Flush.<init>(ColumnFamilyStore.java:1173)
      	at org.apache.cassandra.db.ColumnFamilyStore$Flush.<init>(ColumnFamilyStore.java:1137)
      	at org.apache.cassandra.db.ColumnFamilyStore.switchMemtable(ColumnFamilyStore.java:1000)
      	at org.apache.cassandra.db.ColumnFamilyStore.switchMemtableIfCurrent(ColumnFamilyStore.java:981)
      	at org.apache.cassandra.db.ColumnFamilyStore.switchMemtableOrNotify(ColumnFamilyStore.java:966)
      	at org.apache.cassandra.db.ColumnFamilyStore.reload(ColumnFamilyStore.java:393)
      

      First reported to slack: https://the-asf.slack.com/archives/CK23JSY2K/p1673382016638189

      Attachments

        Activity

          People

            kamalesh0420 Kamalesh Palanisamy
            dcapwell David Capwell
            Kamalesh Palanisamy
            David Capwell, Jon Meredith
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: