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

AssertionError with 2ndary indexes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Duplicate
    • None
    • None
    • None
    • Normal

    Description

      If you create a table with a column type text or blob and add a secondary index on it. If you insert a value that is longer than FBUtilities.MAX_UNSIGNED_SHORT, then flush, you get an assertion error

      CREATE TABLE test_text (key text PRIMARY KEY, col text);
      CREATE INDEX test_text_col_idx ON test_text (col);
      
       INFO [FlushWriter:3] 2014-10-08 10:53:38,471 Memtable.java (line 331) Writing Memtable-test_text.test_text_col_idx@849649959(15/150 serialized/live bytes, 1 ops)
       INFO [FlushWriter:4] 2014-10-08 10:53:38,554 Memtable.java (line 331) Writing Memtable-test_text@1448092010(100025/1000250 serialized/live bytes, 2 ops)
      ERROR [FlushWriter:3] 2014-10-08 10:53:38,554 CassandraDaemon.java (line 196) Exception in thread Thread[FlushWriter:3,5,RMI Runtime]
      java.lang.AssertionError: 100000
      	at org.apache.cassandra.utils.ByteBufferUtil.writeWithShortLength(ByteBufferUtil.java:342)
      
      
      

      Attachments

        Issue Links

          Activity

            People

              samt Sam Tunnicliffe
              kais kais
              Sam Tunnicliffe
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: