[
https://issues.apache.org/jira/browse/HBASE-12392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14191627#comment-14191627
]
Jingcheng Du commented on HBASE-12392:
--------------------------------------
Hi Ram [~ram_krish], do you want to look at this patch? Thanks.
> Incorrect implementation of CompactionRequest.isRetainDeleteMarkers
> -------------------------------------------------------------------
>
> Key: HBASE-12392
> URL: https://issues.apache.org/jira/browse/HBASE-12392
> Project: HBase
> Issue Type: Sub-task
> Components: regionserver, Scanners
> Affects Versions: hbase-11339
> Reporter: Jingcheng Du
> Assignee: Jingcheng Du
> Priority: Critical
> Fix For: hbase-11339
>
> Attachments: HBASE-12392.diff
>
>
> Now in the implementation of the isRetainDeleteMarkers method, the code look
> like,
> {code}
> return (this.retainDeleteMarkers != null) ?
> this.retainDeleteMarkers.booleanValue()
> : isAllFiles();
> {code}
> It means for a major compaction in a normal store, this method returns true.
> Consequently the delete marks could not be deleted in the major compaction,
> which leads the unit test TestKeepDeletes fails.
> The correct implementation should be,
> {code}
> return (this.retainDeleteMarkers != null) ?
> this.retainDeleteMarkers.booleanValue()
> : !isAllFiles();
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)