[ 
https://issues.apache.org/jira/browse/HBASE-26079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17396103#comment-17396103
 ] 

Duo Zhang commented on HBASE-26079:
-----------------------------------

{quote}
I think we would still need a specific implementation for the file based store 
tracking that adds the references to the StoreFileTracker registry, so that 
when opening the region it knows those are valid files (not uncommitted ones).
{quote}

IMO the answer is no, no special implementation here. We should implement the 
logic upon the StoreFileTracker interface. No matter what the actual 
implementation of StoreFileTracker, we always do the same thing. Link store 
files, add the store file list to StoreFileTracker, and then record the region 
in hbase:meta. The difference here is that, for DefaultStoreFileTracker, we 
just do nothing. For file based or region based StoreFileTracker, we need to 
insert the store files into our tracking system. If this operation fails, we 
just fail the split/merge, there is no problem as we have not recorded the new 
regions in hbase:meta yet. And once this is done, then we will record the new 
regions in hbase:meta to make them available, and we can make sure that till 
now the tracking system has the correct store file list.

Thanks.

> Use StoreFileTracker when splitting and merging
> -----------------------------------------------
>
>                 Key: HBASE-26079
>                 URL: https://issues.apache.org/jira/browse/HBASE-26079
>             Project: HBase
>          Issue Type: Sub-task
>          Components: proc-v2
>            Reporter: Duo Zhang
>            Assignee: Wellington Chevreuil
>            Priority: Major
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to