Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-21475

Put mutation (having TTL set) added via co-processor is retrieved even after TTL expires

    XMLWordPrintableJSON

    Details

    • Hadoop Flags:
      Reviewed

      Description

      Steps to reproduce

      1. Create a region co-processor and override preBatchMutate such that it creates a put corresponding to a user put having same timestamp and TTL as the user put.
      2. Create a table and add a row having TTL set to 3000 ms.
      3. Wait for > 3000 ms.
      4. Scan the table.

      Expected Result
      No rows should be retrieved in step 4

      Actual Result
      User row is not retreived, while put created via co-processor is still retrieved.

      Analysis/Issue
      Unlike user mutations, the mutations added by coprocessor do not have tags corresponding to TTL, hence they are retrieved in scan even after TTL expires.

        Attachments

          Activity

            People

            • Assignee:
              nihaljain.cs Nihal Jain
              Reporter:
              nihaljain.cs Nihal Jain
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: