Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-7051 CheckAndPut should properly read MVCC
  3. HBASE-7077

Test for: CheckAndPut should properly read MVCC

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.94.3, 0.95.0
    • None
    • None

    Description

      checkAndPut should integrate with MVCC, similar to how HBASE-4583 fixed appends and increments.

      Also need a test, here's one we could use (originally proposed in HBASE-7051):
      The current value of some cell is 10.
      I issue two concurrent requests:
      A) a check and put where check value = 10, put value = 11
      B) a put where put value = 50
      The only result at the end of these operations that seems reasonable to me is the value of the cell being 50. If A occurred first (ACID wise), then our values go 10->11->50. If B occurred first, then our values go 10->50 (and the checkAndPut fails)

      Attachments

        1. HBASE-7071.patch
          7 kB
          ramkrishna.s.vasudevan
        2. HBASE-7071_testcasewithassert.patch
          7 kB
          ramkrishna.s.vasudevan

        Issue Links

          Activity

            People

              ram_krish ramkrishna.s.vasudevan
              gchanan Gregory Chanan
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: