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

Delete handles deleteFamily incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Abandoned
    • None
    • None
    • Client
    • None
    • Incompatible change

    Description

      Delete.deleteFamily clears all other markers for the same family.
      That is not correct as some of these other markers might be for a later time.

      That logic should be removed.

      If (really) needed this can be slightly optimized by keeping track of the max TS so far for each family.
      If both the TS-so-far and the TS of a new deleteFamily request is < LATEST_TIMESTAMP and the TS-so-far is < deleteFamily marker, or if both the TS-so-far and the new TS equal LATEST_TIMESTAMP, then the previous delete markerz for that family could be removed.
      I think that might be overkill, as most deletes issued from clients are for LATEST_TIMESTAMP (which the server translates to the current time).

      I'll have a (one-line) patch soon. Unless folks insist on the optimization I mentioned above.

      Attachments

        1. 5205.txt
          2 kB
          Lars Hofhansl

        Activity

          People

            Unassigned Unassigned
            larsh Lars Hofhansl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: