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

ASF subversion and git services commented on LUCENE-8290:
---------------------------------------------------------

Commit 8fdd3d7584bcc23442d6256cca94da0dbf2ccc10 in lucene-solr's branch 
refs/heads/branch_7x from [~simonw]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=8fdd3d7 ]

LUCENE-8290: Keep soft deletes in sync with on-disk DocValues

Today we pass on the doc values update to the PendingDeletes
when it's applied. This might cause issues with a rentention policy
merge policy that will see a deleted document but not it's value on
disk.
This change moves back the PendingDeletes callback to flush time
in order to be consistent with what is actually updated on disk.

This change also makes sure we write values to disk on flush that
are in the reader pool as well as extra best effort checks to drop
fully deleted segments on flush, commit and getReader.


> Keep soft deletes in sync with on-disk DocValues
> ------------------------------------------------
>
>                 Key: LUCENE-8290
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8290
>             Project: Lucene - Core
>          Issue Type: Bug
>    Affects Versions: 7.4, master (8.0)
>            Reporter: Simon Willnauer
>            Priority: Major
>             Fix For: 7.4, master (8.0)
>
>         Attachments: LUCENE-8290.patch
>
>
> Today we pass on the doc values update to the PendingDeletes
>     when it's applied. This might cause issues with a rentention policy
>     merge policy that will see a deleted document but not it's value on
>     disk.
>     This change moves back the PendingDeletes callback to flush time
>     in order to be consistent with what is actually updated on disk.
>     
>     This change also makes sure we write values to disk on flush that
>     are in the reader pool as well as extra best effort checks to drop
>     fully deleted segments on flush, commit and getReader.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to