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

Fix race condition between SnapshotManager and SnapshotCleaner

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      None

      Description

      As Matteo Bertozzi comments on HBASE-16464, there maybe race condition between SnapshotManager and SnapshotCleaner. We should use one lock when create snapshot, and cleanup should acquire the lock before take action.

      One method is pass HMaster as param into Cleaner through FileCleanerDelegate.getDeletableFiles, suggestions are welcomed.

        Attachments

        1. HBASE-16490.patch
          16 kB
          Heng Chen
        2. HBASE-16490.v1.patch
          26 kB
          Heng Chen
        3. HBASE-16490.v2.patch
          27 kB
          Heng Chen

          Issue Links

            Activity

              People

              • Assignee:
                chenheng Heng Chen
                Reporter:
                chenheng Heng Chen
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: