[
https://issues.apache.org/jira/browse/HBASE-13737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14581330#comment-14581330
]
Jingcheng Du commented on HBASE-13737:
--------------------------------------
Thanks [~ashutosh_jindal] for the patch.
{noformat}
HFileLink.getHFileFromBackReference(MobUtils.getMobHome(getConf()), filePath);
{noformat}
For the MobUtils.getMobHome(getConf()), how about to move it to the constructor
instead of getting it per invoking?
Besides, would you mind adding unit tests for this case? Thanks a lot.
> [HBase MOB] MOBTable cloned from a snapshot leads to data loss, when that
> actual snapshot and main table is deleted.
> --------------------------------------------------------------------------------------------------------------------
>
> Key: HBASE-13737
> URL: https://issues.apache.org/jira/browse/HBASE-13737
> Project: HBase
> Issue Type: Bug
> Components: mob
> Affects Versions: hbase-11339
> Reporter: Y. SREENIVASULU REDDY
> Assignee: Ashutosh Jindal
> Priority: Critical
> Fix For: hbase-11339
>
> Attachments: HBASE-13737-hbase-11339.patch
>
>
> clone snapshot on mob feature leads to data loss for mob data.
> steps to reproduce:
> ===============
> 1. created MOB table with two column families like "mobcf" (mob is enabled)
> and "norcf"
> 2. insert mob data and normal data at a time into the table.
> 3. scan the MOB table.
> 4. take snapshot by specifying the table name.
> 5. clone the snapshot by specifying the new table name.
> 6. check the new table is created or not and try scan for the new table which
> have both mob data and normal data should give back to the client.
> 7. delete the snapshot which done in step 4.
> 8. delete the main table which done in step 1.
> 9. Now scan the new table again.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)