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
Attachments
Issue Links
- Dependent
-
HBASE-14439 New/Improved Filesystem Abstractions
- Closed
- is related to
-
HBASE-5547 Don't delete HFiles when in "backup mode"
- Closed