[ https://issues.apache.org/jira/browse/HBASE-16716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15568799#comment-15568799 ]
Pankaj Kumar commented on HBASE-16716: -------------------------------------- Have attached branch-1 patch. Since branch-1 doesn't have HBASE-11983, so HBCK meta WAL directory has prefix as "hregion-" and followed by a random number. In branch-1 patch retrieving WAL directory as, {code} Path walLogDir = ((FSHLog) meta.getWAL()).getCurrentFileName().getParent(); {code} Is this ok? > OfflineMetaRepair leaves empty directory inside /hbase/WALs which remains > forever > --------------------------------------------------------------------------------- > > Key: HBASE-16716 > URL: https://issues.apache.org/jira/browse/HBASE-16716 > Project: HBase > Issue Type: Bug > Components: hbck > Affects Versions: 2.0.0 > Reporter: Pankaj Kumar > Assignee: Pankaj Kumar > Priority: Minor > Fix For: 2.0.0 > > Attachments: HBASE-16716-V2.patch, HBASE-16716-branch-1.patch, > HBASE-16716.patch > > > OfflineMetaRepair rebuild Meta table, while creating meta region it creates > it's own WAL (inside /hbase/WALs/hbck-meta-recovery-<randomNumber>) which wll > be closed and archived after rebuilding Meta. > {noformat} > hbase org.apache.hadoop.hbase.util.hbck.OfflineMetaRepair > >> /hbase/WALs/hbck-meta-recovery-<randomNumber> > {noformat} > It doesn't clear the empty dir, empty directory should be removed after > success. -- This message was sent by Atlassian JIRA (v6.3.4#6332)