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

Remove unnecessary wait in MVCC

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.0, 2.0.0
    • 1.4.0, 2.0.0
    • None
    • None

    Description

      Currently the return value of MVCC#complete indicates whether readPoint already advanced over write number of the given WriteEntry:

      return readPoint.get() >= writeEntry.getWriteNumber();
      

      While in MVCC#checkAndWait we never take usage of this but always call waitForRead which will acquire and release lock on readWaiters and cause additional context switch. This JIRA will improve this logic and remove the unnecessary wait.

      Attachments

        1. HBASE-15451.test
          3 kB
          Yu Li
        2. HBASE-15451.patch
          0.7 kB
          Yu Li

        Activity

          People

            liyu Yu Li
            liyu Yu Li
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: