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

Short reads protection results in returning more columns than asked for

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.0.2
    • None
    • None
    • Low

    Description

      When we detect a short read (in SP.fetchRows), we retry a new command created by:

      logger.debug("detected short read: expected {} columns, but only resolved {} columns", sliceCommand.count, liveColumnsInRow);
      int retryCount = sliceCommand.count + sliceCommand.count - liveColumnsInRow;
      SliceFromReadCommand retryCommand = new SliceFromReadCommand(command.table,
                                                                   command.key,
                                                                   command.queryPath,
                                                                   sliceCommand.start,
                                                                   sliceCommand.finish,
                                                                   sliceCommand.reversed,
                                                                   retryCount);
      

      That is, in that new command, the count is greater than what asked in the initial command. But we never cut back the result of that new retried query.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--long_read.sh
          2 kB
          Byron Clark
        2. cassandra-3303-1.patch
          6 kB
          Byron Clark
        3. cassandra-3303-2.patch
          6 kB
          Byron Clark
        4. cassandra-3303-3.patch
          9 kB
          Byron Clark
        5. cassandra-3303-4.patch
          11 kB
          Byron Clark
        6. cassandra-3303-5.patch
          11 kB
          Byron Clark

        Activity

          People

            byronclark Byron Clark
            slebresne Sylvain Lebresne
            Byron Clark
            Sylvain Lebresne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: