[ 
https://issues.apache.org/jira/browse/HBASE-7902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13586858#comment-13586858
 ] 

Lars Hofhansl commented on HBASE-7902:
--------------------------------------

The problem here would be the Delete in a store file and a Put with an older 
timestamp in the memstore.
Now, the Put is marked deleted by the newer Delete. As normal scan will not 
return the Put, but the major compaction scan only looks at the store files and 
will happily remove the Delete and leave the Put around.

Now backdating Puts is weird (I can always add a backdated Put to the memstore 
after the compaction finished), but in this case the compaction does have in 
principle all the information, and produce a correct state at the time it runs.

                
> deletes may be removed during minor compaction,  in non-standard compaction 
> schemes
> -----------------------------------------------------------------------------------
>
>                 Key: HBASE-7902
>                 URL: https://issues.apache.org/jira/browse/HBASE-7902
>             Project: HBase
>          Issue Type: Improvement
>          Components: Compaction
>            Reporter: Sergey Shelukhin
>            Assignee: Sergey Shelukhin
>            Priority: Minor
>         Attachments: HBASE-7902-v0.patch, HBASE-7902-v0-with-7843.patch
>
>
> Deletes are only removed during major compaction now. However, in presence of 
> file ordering, deletes can be removed during minor compaction too, as long as 
> there's no file that is not being compacted that is older than the files that 
> are.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to