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

Deadlock between HRegion.put and HRegion.close

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.20.3
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: