hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Esteban Gutierrez (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HBASE-6205) Support an option to keep data of dropped table for some time
Date Wed, 16 Nov 2016 21:41:58 GMT

     [ https://issues.apache.org/jira/browse/HBASE-6205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Esteban Gutierrez resolved HBASE-6205.
--------------------------------------
    Resolution: Later

Resolving for later, We already have the archive and snapshots and we could take care of this
after HBASE-14439.

> Support an option to keep data of dropped table for some time
> -------------------------------------------------------------
>
>                 Key: HBASE-6205
>                 URL: https://issues.apache.org/jira/browse/HBASE-6205
>             Project: HBase
>          Issue Type: New Feature
>    Affects Versions: 0.94.0, 0.95.2
>            Reporter: chunhui shen
>            Assignee: chunhui shen
>         Attachments: HBASE-6205.patch, HBASE-6205v2.patch, HBASE-6205v3.patch, HBASE-6205v4.patch,
HBASE-6205v5.patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message