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

The number of Offline Regions is wrong after restoring a snapshot

    XMLWordPrintableJSON

    Details

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

      Description

      Steps to reproduce are as follows:

      1. Create a table

      create "test", "cf"
      

      2. Take a snapshot for the table

      snapshot "test", "snap"
      

      3. Load data to the table

      (0...2000).each{|i| put "test", "row#{i}", "cf:col", "val"}
      

      4. Split regions of the table

      split "test"
      

      5. Restore the table from the snapshot

      disable "test"
      restore_snapshot "snap"
      enable "test"
      

       

      The number of Offline Regions is as follows:

      The number of Offline Regions should be zero.

      It seems like when regions are removed by restoring a snapshot, the number of Offline Regions becomes wrong. And as far as I reviewed the code, it seems like the Offline Regions will not be cleaned up. After restarting Master, the offline regions disappear.

       

        Attachments

        1. HBASE-19850.branch-1.001.patch
          7 kB
          Toshihiro Suzuki
        2. HBASE-19850.branch-1.001.patch
          7 kB
          Toshihiro Suzuki
        3. HBASE-19850-branch-1.patch
          4 kB
          Toshihiro Suzuki
        4. The number of Offline Regions.png
          90 kB
          Toshihiro Suzuki

          Activity

            People

            • Assignee:
              brfrn169 Toshihiro Suzuki
              Reporter:
              brfrn169 Toshihiro Suzuki
            • Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: