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

Deletes can mask puts that happen after the delete

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • regionserver
    • None

    Description

      this fix aims for bug mentioned in http://hbase.apache.org/book.html 5.8.2.1:

      "Deletes mask puts, even puts that happened after the delete was entered. Remember that a delete writes a tombstone, which only disappears after then next major compaction has run. Suppose you do a delete of everything <= T. After this you do a new put with a timestamp <= T. This put, even if it happened after the delete, will be masked by the delete tombstone. Performing the put will not fail, but when you do a get you will notice the put did have no effect. It will start working again after the major compaction has run. These issues should not be a problem if you use always-increasing versions for new puts to a row. But they can occur even if you do not care about time: just do delete and put immediately after each other, and there is some chance they happen within the same millisecond."

      Attachments

        1. HBASE-8721-0.94-V0.patch
          48 kB
          Honghua Feng

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fenghh Honghua Feng
              Votes:
              0 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: