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

Minor bug in delete flow.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 0.94.0, 0.94.1, 0.94.2, 0.95.2
    • None
    • None
    • None

    Description

      Timestamp updation in Delete flow is not considering all flavors (Delete record, Delete Family, Delete Column) of Delete API. Currently its considering Delete Record only.

      org.apache.hadoop.hbase.regionserver.HRegion.prepareDeleteTimestamps(Delete, byte[])

            for (KeyValue kv: kvs) {
              //  Check if time is LATEST, change to time of most recent addition if so
              //  This is expensive.
              if (kv.isLatestTimestamp() && kv.isDeleteType()) {
      

      Basically used a wrong API.
      kv.isDeleteType() should be KeyValue.isDelete(type);

      Attachments

        Activity

          People

            Unassigned Unassigned
            lakshman Laxman
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: