HBase
  1. HBase
  2. HBASE-2295

Row locks may deadlock with themselves

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.90.0
    • Component/s: regionserver
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Row locks in HRegion are keyed by a int-sized hash of the row key. It's perfectly possible for two rows to hash to the same key. So, if any client tries to lock both rows, it will deadlock with itself. Switching to a 64-bit hash is an improvement but still sketchy.

      1. rowLockDeadlock2.txt
        4 kB
        dhruba borthakur
      2. rowLockDeadlock.txt
        4 kB
        dhruba borthakur

        Issue Links

          Activity

            People

            • Assignee:
              dhruba borthakur
              Reporter:
              Todd Lipcon
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development