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

terry zhang commented on HBASE-9201:
------------------------------------

now we can see hfile will be deleted in Master file system instead be archived. 
{code:title=MasterFileSystem.java|borderStyle=solid}
  public void deleteFamilyFromFS(HRegionInfo region, byte[] familyName)
      throws IOException {
    // archive family store files
    Path tableDir = FSUtils.getTableDir(rootdir, region.getTableName());
    HFileArchiver.archiveFamily(fs, conf, region, tableDir, familyName);

    // delete the family folder
    Path familyDir = new Path(tableDir,
      new Path(region.getEncodedName(), Bytes.toString(familyName)));
    if (fs.delete(familyDir, true) == false) {
      throw new IOException("Could not delete family "
          + Bytes.toString(familyName) + " from FileSystem for region "
          + region.getRegionNameAsString() + "(" + region.getEncodedName()
          + ")");
    }
  }
{code}
Should we use interface archiveStoreFiles instead fs.delete? 
                
> Hfile will be deleted after deleteColumn instead be archived
> ------------------------------------------------------------
>
>                 Key: HBASE-9201
>                 URL: https://issues.apache.org/jira/browse/HBASE-9201
>             Project: HBase
>          Issue Type: Bug
>          Components: master
>    Affects Versions: 0.94.10
>            Reporter: terry zhang
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to