Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-14336 Procedure V2 Phase 1 - Procedure Framework and Making DDL Operations fault tolerant
  3. HBASE-14017

Procedure v2 - MasterProcedureQueue fix concurrency issue on table queue deletion

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.2.0, 1.1.1, 1.3.0, 2.0.0
    • 1.2.0, 1.1.2, 2.0.0
    • proc-v2
    • None

    Description

      syuanjiang found a concurrecy issue in the procedure queue delete where we don't have an exclusive lock before deleting the table

      Thread 1: Create table is running - the queue is empty and wlock is false 
      Thread 2: markTableAsDeleted see the queue empty and wlock= false
      Thread 1: tryWrite() set wlock=true; too late
      Thread 2: delete the queue
      Thread 1: never able to release the lock - NPE when trying to get the queue
      

      Attachments

        1. HBASE-14017-v0.patch
          4 kB
          Matteo Bertozzi
        2. HBASE-14017-v0.patch
          4 kB
          Sean Busbey
        3. HBASE-14017.v1-branch1.1.patch
          4 kB
          Sean Busbey
        4. HBASE-14017.v1-branch1.1.patch
          4 kB
          Stephen Yuan Jiang
        5. HBASE-14017.as-pushed-master.patch
          5 kB
          Sean Busbey

        Activity

          People

            mbertozzi Matteo Bertozzi
            mbertozzi Matteo Bertozzi
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: