Apache9 commented on PR #4338:
URL: https://github.com/apache/hbase/pull/4338#issuecomment-1098637886

   I think the key problem here is the compactionTargets is used during the 
whole compaction life time, but the state is only stored in compactor, which is 
only used for generating the new store files, so no matter what we do, it is 
still very awkward.
   
   I got another idea in mind that, maybe we could just pass a 
StoreFileWriterTargetCollector to the compactor, the compactor implementation 
will add new target to the collector when creating new store file writer. And 
the collector is stored in StoreEngine or HStore, so we are free to clean it up 
at any time. The compactor does not need to do the cleanup work any more. I 
could implement a POC to see if it works. In general, I think we should also 
track the target of flushed store files as well, but this is a missing part in 
the original patch of HBASE-26271.
   
   Thanks.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to