Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
if user deletes the segment already selected for compaction then compaction need to get failed.
step 1: Start the compaction which selects the segments 0, 1 .
step 2: delete the segment 1.
so that delete will immediately make the segment 1 as marked as delete.
but the compaction is running and it will make the already deleted segment as compacted. like undo the delete.
Behaviour should be , if any segment gets deleted after the trigger of compaction then we need to fail the compaction process.
This can be achieved by , check the segments status before updating the compaction status in table status , and if any segment is deleted then need to abort the compaction.