You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Ankit Singhal (Jira)" <ji...@apache.org> on 2023/09/05 23:09:00 UTC
[jira] [Created] (HBASE-28064) Implement truncate_region command to truncate region directly from FS
Ankit Singhal created HBASE-28064:
-------------------------------------
Summary: Implement truncate_region command to truncate region directly from FS
Key: HBASE-28064
URL: https://issues.apache.org/jira/browse/HBASE-28064
Project: HBase
Issue Type: New Feature
Reporter: Ankit Singhal
One of our users has brought up a use-case where they need to truncate a region to delete data within a specific range. There are two scenarios to consider:
* In the first scenario, the region boundaries involve a time range defined through pre-splitting, and user is looking to efficiently clean old date data. If HBase can directly truncate the region from the file system and then the user can merge the empty region with adjacent regions to effectively eliminate it which will be more optimized compared to deleting the data using Delete API.
* In another case, if the HFile for that region becomes corrupted for some reason, user want to get rid of the HFile and reload the entire region to avoid consistency issues and ensure performance.
we can do this when the table is offline/disabled to avoid the consideration of race conditions involving Region In Transition (RITs), region re-opening, and merge/split scenarios, as taking the region offline is necessary regardless
--
This message was sent by Atlassian Jira
(v8.20.10#820010)