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

Deadlock between HRegion.put and HRegion.close

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 0.20.3
    • None
    • None
    • Reviewed

    Description

      HBASE-2037 added a bunch of fixes but also a deadlock:

      HRegion.put:

      splitsAndClosesLock.readLock().lock();
      newScannerLock.writeLock().lock();
      

      HRegion.close

      newScannerLock.writeLock().lock();
      try {
        splitsAndClosesLock.writeLock().lock();
      

      To recreate, start a PerformanceEvaluation on standalone and it happens roughly 75% of the time.

      Attachments

        1. 2097.patch
          2 kB
          Michael Stack

        Activity

          People

            stack Michael Stack
            jdcryans Jean-Daniel Cryans
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: