[ 
https://issues.apache.org/jira/browse/CARBONDATA-110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ChenLiang updated CARBONDATA-110:
---------------------------------
    Assignee: Venkata Ramana G

> if user deletes the segment already selected for compaction then compaction 
> need to get failed.
> -----------------------------------------------------------------------------------------------
>
>                 Key: CARBONDATA-110
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-110
>             Project: CarbonData
>          Issue Type: Bug
>            Reporter: ravikiran
>            Assignee: Venkata Ramana G
>            Priority: Minor
>             Fix For: 0.1.0-incubating
>
>
> 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. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to