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

Duo Zhang commented on HBASE-23680:
-----------------------------------

You have the archive directory set up sir? [~stack]

It is a bit strange. After checking the code, it is done by a chore called 
CompactedHFilesDischarger and we do not schedule this chore here. So you 
restarted your HMaster several times? OK this is possible, when opening and 
closing regions we will archived the compacted files.

Since there is no reader for the RegionProcedureStore after restart, I think we 
can just call HStore.closeAndArchiveCompactedFiles after compaction to archive 
the store files, to the archive directory, and then move them all to the global 
archive directory.

> RegionProcedureStore missing cleaning of hfile archive
> ------------------------------------------------------
>
>                 Key: HBASE-23680
>                 URL: https://issues.apache.org/jira/browse/HBASE-23680
>             Project: HBase
>          Issue Type: Sub-task
>    Affects Versions: 2.3.0
>            Reporter: Michael Stack
>            Assignee: Duo Zhang
>            Priority: Major
>             Fix For: 2.3.0
>
>
> See tail of parent issue. The new RegionProcedureStore accumulates deleted 
> hfiles in its local archive dir. Needs a cleaner like the one that watches 
> over /hbase/archive.
> Is there a problem clearning the new $masterproc$ files from the oldWALs too? 
> These seem to stick around also.



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

Reply via email to