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

Batch Get after batch Put does not fetch all Cells

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.0.0, 1.3.0, 1.2.1, 0.98.19
    • 1.3.0, 1.2.2, 1.1.6, 2.0.0
    • Client
    • None
    • Hide
      We were not waiting on all executors in a batch to complete which meant a read-your-own-writes could sometimes fail -- especially if client is loaded; i.e. putting to multiple machines in a cluster. The test for no-more-executors was damaged by the 0.99/0.98.4 fix "HBASE-11403 Fix race conditions around Object#notify"
      Show
      We were not waiting on all executors in a batch to complete which meant a read-your-own-writes could sometimes fail -- especially if client is loaded; i.e. putting to multiple machines in a cluster. The test for no-more-executors was damaged by the 0.99/0.98.4 fix " HBASE-11403 Fix race conditions around Object#notify"

    Description

      A big batch put followed by a batch get does not always return all Cells put. See attached test program by Robert Farr that reproduces the issue. It seems to be an issue to do with a cluster of more than one machine. Running against a single machine does not have the problem (though the single machine may have many regions). Robert was unable to make his program fail with a single machine only.

      I reproduced what Robert was seeing running his program. I was also unable to make a single machine fail. In a batch of 1000 puts, I see one to three Gets fail. I noticed too that if I wait a second after a fail and then re-get, the Get succeeds.

      Attachments

        1. Test.java
          7 kB
          Michael Stack
        2. Test2.java
          7 kB
          Robert Farr
        3. 15811.branch-1.patch
          8 kB
          Michael Stack
        4. 15811.branch-1.v2.patch
          8 kB
          Michael Stack
        5. 15811.patch
          6 kB
          Michael Stack

        Issue Links

          Activity

            People

              stack Michael Stack
              stack Michael Stack
              Votes:
              0 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: