keith-turner edited a comment on issue #2013:
URL: https://github.com/apache/accumulo/issues/2013#issuecomment-818112876


   I think tablet servers should not delete the external compaction final state 
markers when they do not know about the external compaction.  They should only 
delete these markers when they are hosting the tablet related to the compaction 
and the tablet knows about the compaction.
   
   For final state markers that reference external compactions that no longer 
exists or tablets that no longer exist, the coordinator could periodically look 
for these and clean them up.  This periodic detection would be similar to what 
the dead compaction detection is currently doing, but would be looking for the 
inverse.  The periodic algorithm could do the following.
   
     1. Scan the final states markers in metadata table (~ecomp section) and 
store them in a set w/ UUID (compaction id) as key.
     2. Scan the metadata tablets section looking for compactions tablets think 
are running and remove them from the set.
     3. Delete any final state markers in the set since these reference tablets 
and/or external compactions that no longer exists.


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

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


Reply via email to