Uploaded image for project: 'Phoenix Tephra'
  1. Phoenix Tephra
  2. TEPHRA-49

TransactionProcessor should not limit versions on flush and compaction scans

    XMLWordPrintableJSON

Details

    Description

      The TransactionProcessor coprocessor creates it's own StoreScanner instance to use for flush and compaction.

      When it constructs the Scan to use for the scanner, it limits the versions returned:

      scan.setMaxVersions(dummyTx.excludesSize() + 1);
      

      This is based on the assumption that we only need to emit a single visible cell for each column (since other cells would normally be hidden). However, this assumption is not valid when the application relies on the use of multiple versions (for example in the readless increment implementation in CDAP).

      We need to modify this to always use max versions, since we can't know what the application relies on.

      Attachments

        Activity

          People

            ghelmling Gary Helmling
            ghelmling Gary Helmling
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: