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

IndexedReader updateBlock exception

    XMLWordPrintableJSON

Details

    Description

      While testing the Materialized View, an exception is thrown on create.

          [junit] ERROR 18:25:01 Unexpected exception during request
          [junit] java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
          [junit] 	at org.apache.cassandra.utils.FBUtilities.waitOnFuture(FBUtilities.java:356) ~[main/:na]
          [junit] 	at org.apache.cassandra.service.MigrationManager.announce(MigrationManager.java:423) ~[main/:na]
          [junit] 	at org.apache.cassandra.service.MigrationManager.announceColumnFamilyUpdate(MigrationManager.java:340) ~[main/:na]
          [junit] 	at org.apache.cassandra.cql3.statements.CreateMaterializedViewStatement.announceMigration(CreateMaterializedViewStatement.java:208) ~[main/:na]
          [junit] 	at org.apache.cassandra.cql3.statements.SchemaAlteringStatement.execute(SchemaAlteringStatement.java:93) ~[main/:na]
          [junit] 	at org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:204) ~[main/:na]
          [junit] 	at org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:235) ~[main/:na]
          [junit] 	at org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:220) ~[main/:na]
          [junit] 	at org.apache.cassandra.transport.messages.QueryMessage.execute(QueryMessage.java:119) ~[main/:na]
          [junit] 	at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:507) [main/:na]
          [junit] 	at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:401) [main/:na]
          [junit] 	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) [netty-all-4.0.23.Final.jar:4.0.23.Final]
          [junit] 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [netty-all-4.0.23.Final.jar:4.0.23.Final]
          [junit] 	at io.netty.channel.AbstractChannelHandlerContext.access$700(AbstractChannelHandlerContext.java:32) [netty-all-4.0.23.Final.jar:4.0.23.Final]
          [junit] 	at io.netty.channel.AbstractChannelHandlerContext$8.run(AbstractChannelHandlerContext.java:324) [netty-all-4.0.23.Final.jar:4.0.23.Final]
          [junit] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_45]
          [junit] 	at org.apache.cassandra.concurrent.AbstractTracingAwareExecutorService$FutureTask.run(AbstractTracingAwareExecutorService.java:164) [main/:na]
          [junit] 	at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105) [main/:na]
          [junit] 	at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45]
          [junit] Caused by: java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
          [junit] 	at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:1.8.0_45]
          [junit] 	at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[na:1.8.0_45]
          [junit] 	at org.apache.cassandra.utils.FBUtilities.waitOnFuture(FBUtilities.java:352) ~[main/:na]
          [junit] 	... 18 common frames omitted
          [junit] Caused by: java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
          [junit] 	at java.util.ArrayList.rangeCheck(ArrayList.java:653) ~[na:1.8.0_45]
          [junit] 	at java.util.ArrayList.get(ArrayList.java:429) ~[na:1.8.0_45]
          [junit] 	at org.apache.cassandra.db.columniterator.AbstractSSTableIterator$IndexedReader.updateBlock(AbstractSSTableIterator.java:407) ~[main/:na]
          [junit] 	at org.apache.cassandra.db.columniterator.SSTableIterator$ForwardIndexedReader$1.computeNext(SSTableIterator.java:253) ~[main/:na]
          [junit] 	at org.apache.cassandra.db.columniterator.SSTableIterator$ForwardIndexedReader$1.computeNext(SSTableIterator.java:222) ~[main/:na]
          [junit] 	at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) ~[guava-18.0.jar:na]
          [junit] 	at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) ~[guava-18.0.jar:na]
          [junit] 	at org.apache.cassandra.db.Slices$ArrayBackedSlices$1.prepareNext(Slices.java:490) ~[main/:na]
          [junit] 	at org.apache.cassandra.db.Slices$ArrayBackedSlices$1.hasNext(Slices.java:458) ~[main/:na]
          [junit] 	at org.apache.cassandra.utils.MergeIterator$Candidate.advance(MergeIterator.java:369) ~[main/:na]
          [junit] 	at org.apache.cassandra.utils.MergeIterator$ManyToOne.advance(MergeIterator.java:189) ~[main/:na]
          [junit] 	at org.apache.cassandra.utils.MergeIterator$ManyToOne.computeNext(MergeIterator.java:158) ~[main/:na]
          [junit] 	at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) ~[guava-18.0.jar:na]
          [junit] 	at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) ~[guava-18.0.jar:na]
          [junit] 	at org.apache.cassandra.db.rows.UnfilteredRowIterators$UnfilteredRowMergeIterator.computeNext(UnfilteredRowIterators.java:644) ~[main/:na]
          [junit] 	at org.apache.cassandra.db.rows.UnfilteredRowIterators$UnfilteredRowMergeIterator.computeNext(UnfilteredRowIterators.java:508) ~[main/:na]
          [junit] 	at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) ~[guava-18.0.jar:na]
          [junit] 	at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) ~[guava-18.0.jar:na]
          [junit] 	at org.apache.cassandra.db.rows.UnfilteredRowIterators$FilteringIterator.computeNext(UnfilteredRowIterators.java:752) ~[main/:na]
          [junit] 	at org.apache.cassandra.db.rows.UnfilteredRowIterators$FilteringIterator.computeNext(UnfilteredRowIterators.java:711) ~[main/:na]
          [junit] 	at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) ~[guava-18.0.jar:na]
          [junit] 	at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) ~[guava-18.0.jar:na]
          [junit] 	at org.apache.cassandra.cql3.statements.SelectStatement.processPartition(SelectStatement.java:624) ~[main/:na]
          [junit] 	at org.apache.cassandra.cql3.statements.SelectStatement.process(SelectStatement.java:565) ~[main/:na]
          [junit] 	at org.apache.cassandra.cql3.statements.SelectStatement.process(SelectStatement.java:365) ~[main/:na]
          [junit] 	at org.apache.cassandra.cql3.QueryProcessor.resultify(QueryProcessor.java:354) ~[main/:na]
          [junit] 	at org.apache.cassandra.cql3.QueryProcessor.resultify(QueryProcessor.java:346) ~[main/:na]
          [junit] 	at org.apache.cassandra.schema.SchemaKeyspace.createTableFromTablePartition(SchemaKeyspace.java:1015) ~[main/:na]
          [junit] 	at org.apache.cassandra.schema.SchemaKeyspace.lambda$createTableFromName$60(SchemaKeyspace.java:985) ~[main/:na]
          [junit] 	at org.apache.cassandra.schema.SchemaKeyspace$$Lambda$38/961727332.apply(Unknown Source) ~[na:na]
          [junit] 	at org.apache.cassandra.schema.SchemaKeyspace.readSchemaPartitionForTableAndApply(SchemaKeyspace.java:426) ~[main/:na]
          [junit] 	at org.apache.cassandra.schema.SchemaKeyspace.createTableFromName(SchemaKeyspace.java:980) ~[main/:na]
          [junit] 	at org.apache.cassandra.config.CFMetaData.reload(CFMetaData.java:804) ~[main/:na]
          [junit] 	at org.apache.cassandra.config.Schema.updateTable(Schema.java:535) ~[main/:na]
          [junit] 	at org.apache.cassandra.schema.SchemaKeyspace$1.onUpdated(SchemaKeyspace.java:529) ~[main/:na]
          [junit] 	at org.apache.cassandra.schema.SchemaKeyspace.diffSchema(SchemaKeyspace.java:643) ~[main/:na]
          [junit] 	at org.apache.cassandra.schema.SchemaKeyspace.mergeTables(SchemaKeyspace.java:515) ~[main/:na]
          [junit] 	at org.apache.cassandra.schema.SchemaKeyspace.mergeSchema(SchemaKeyspace.java:478) ~[main/:na]
          [junit] 	at org.apache.cassandra.schema.SchemaKeyspace.mergeSchema(SchemaKeyspace.java:447) ~[main/:na]
          [junit] 	at org.apache.cassandra.service.MigrationManager$1.runMayThrow(MigrationManager.java:442) ~[main/:na]
          [junit] 	at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) ~[main/:na]
          [junit] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_45]
          [junit] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_45]
          [junit] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_45]
          [junit] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_45]
          [junit] 	... 1 common frames omitted
      

      Attachments

        Activity

          People

            carlyeks Carl Yeksigian
            carlyeks Carl Yeksigian
            Carl Yeksigian
            Sylvain Lebresne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: