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

Support an option to keep data of dropped table for some time

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Later
    • 2.0.0
    • None
    • None
    • None

    Description

      User may drop table accidentally because of error code or other uncertain reasons.

      Unfortunately, it happens in our environment because one user make a mistake between production cluster and testing cluster.

      So, I just give a suggestion, do we need to support an option to keep data of dropped table for some time, e.g. 1 day

      In the patch:
      We make a new dir named .trashtables in the rood dir.
      In the DeleteTableHandler, we move files in dropped table's dir to trash table dir instead of deleting them directly.
      And Create new class TrashCleaner which will clean dropped tables if it is time out with a period check.
      Default keep time for dropped tables is 1 day, and check period is 1 hour.

      Attachments

        1. HBASE-6205v5.patch
          21 kB
          Chunhui Shen
        2. HBASE-6205v4.patch
          19 kB
          Chunhui Shen
        3. HBASE-6205v3.patch
          19 kB
          Chunhui Shen
        4. HBASE-6205v2.patch
          19 kB
          Chunhui Shen
        5. HBASE-6205.patch
          17 kB
          Chunhui Shen

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zjushch Chunhui Shen
              Votes:
              0 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: