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

Szabolcs Bukros commented on HBASE-27017:
-----------------------------------------

[~zhangduo] That would not work well after we remove the renames. It would mean 
the snapshot would also contain any incomplete or broken files too currently in 
the dir. Copying trash around is a non-issue, because we only ever read the 
referenced mob files, but if a snapshot is made during write operation that 
later fails and the file is removed we would end up with a snapshot referencing 
a missing file.

> MOB snapshot is broken when FileBased SFT is used
> -------------------------------------------------
>
>                 Key: HBASE-27017
>                 URL: https://issues.apache.org/jira/browse/HBASE-27017
>             Project: HBase
>          Issue Type: Bug
>          Components: mob
>    Affects Versions: 2.5.0, 3.0.0-alpha-2
>            Reporter: Szabolcs Bukros
>            Priority: Major
>
> During snapshot MOB regions are treated like any other region. When a 
> snapshot is taken and hfile references are collected a StoreFileTracker is 
> created to get the current active hfile list. But the MOB region stores are 
> not tracked so an empty list is returned, resulting in a broken snapshot. 
> When this snapshot is cloned the resulting table will have no MOB files or 
> references.
> The problematic code can be found here:
> [https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/SnapshotManifest.java#L313]



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to