You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2018/05/11 16:57:00 UTC

[jira] [Commented] (LUCENE-8309) Don't use mutable FixedBitSets as live docs Bits

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

Adrien Grand commented on LUCENE-8309:
--------------------------------------

Here is a patch. cc [~simonwillnauer]

> Don't use mutable FixedBitSets as live docs Bits
> ------------------------------------------------
>
>                 Key: LUCENE-8309
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8309
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-8309.patch
>
>
> Simon mentioned this idea first: it would be nice to not expose mutable fixedbitsets as live docs, which makes it easy for consumers of live docs to resurrect some documents by casting to a FixedBitSet and potentially corrupt the index.



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

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