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

   > Last set of changes broke tests so I will revert them.
   > 
   > @Apache9 I think we need to go back to the drawing board here. We need to 
put the call out to SFT logic somewhere else, or we need to make Compactor 
something that is created per compaction as was the assumption behind the 
changes that added the 'writer' field and requires the semantics offered by 
that. I will try the latter.
   
   Creating Compactor per compaction maybe too big? FWIW, we have a Compactor 
instance in StoreEngine, if we want to make it per compaction, it will cause a 
very big refactoring.
   
   So I suggest that, we add something like a compactionId to the 
CompactionRequest interface, and use it as the key for our map, when calling 
StoreEngine.replaceStoreFile, we pass this id in, then we could use this to 
remove the writer in the Compactor.
   
   WDYT?


-- 
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