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

[Transactional Contrib] Correctly handle or avoid cases where writes occur in same millisecond

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.90.0
    • None
    • None
    • Reviewed

    Description

      This patch fixes a few issues where puts/deletes occur with the same timestamp.

      In the indexing layer, we avoid a Delete followed by a Put to the same row for the index update. When the row is the same, we can just do the put.

      In the transactional layer, we correctly handled put, put, scan. This way the scan will see the last put, even if they have the same timestamp.

      Remove the sleep to fix the putPutScan transactional test, and run it many times to be sure we hit the case where they are in the same millisecond.

      Also some small cleanup, null handling, and fail-fast changes.

      Attachments

        1. hbase-2286-v2-trunk.patch
          15 kB
          George P. Stathis
        2. hbase-2286-v2.patch
          16 kB
          Clint Morgan
        3. hbase-2286.patch
          15 kB
          Clint Morgan

        Activity

          People

            clint.morgan Clint Morgan
            clint.morgan Clint Morgan
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: