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

CFRR wide row iterator does not handle tombstones well

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 1.1.0
    • Component/s: None
    • Labels:
      None
    • Severity:
      Normal

      Description

      If the last row is a tombstone, CFRR's wide row iterator will throw an exception:

      java.util.NoSuchElementException
              at com.google.common.collect.Iterables.getLast(Iterables.java:663)
              at org.apache.cassandra.hadoop.ColumnFamilyRecordReader$WideRowIterator.maybeInit(ColumnFamilyRecordReader.java:441)
              at org.apache.cassandra.hadoop.ColumnFamilyRecordReader$WideRowIterator.computeNext(ColumnFamilyRecordReader.java:467)
              at org.apache.cassandra.hadoop.ColumnFamilyRecordReader$WideRowIterator.computeNext(ColumnFamilyRecordReader.java:413)
              at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:137)
              at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:132)
              at org.apache.cassandra.hadoop.ColumnFamilyRecordReader.nextKeyValue(ColumnFamilyRecordReader.java:188)
              at org.apache.cassandra.hadoop.pig.CassandraStorage.getNextWide(CassandraStorage.java:140)
              at org.apache.cassandra.hadoop.pig.CassandraStorage.getNext(CassandraStorage.java:199)
              at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigRecordReader.nextKeyValue(PigRecordReader.java:187)
              at org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.nextKeyValue(MapTask.java:423)
              at org.apache.hadoop.mapreduce.MapContext.nextKeyValue(MapContext.java:67)
              at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
              at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:621)
              at org.apache.hadoop.mapred.MapTask.run(MapTask.java:305)
              at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:177)
      

        Attachments

        1. 4154.txt
          3 kB
          Jonathan Ellis

          Activity

            People

            • Assignee:
              jbellis Jonathan Ellis
              Reporter:
              brandon.williams Brandon Williams
              Authors:
              Jonathan Ellis
              Reviewers:
              Brandon Williams
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: