You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "yubinglei (Jira)" <ji...@apache.org> on 2020/03/30 09:06:00 UTC

[jira] [Updated] (LUCENE-9298) Incorrect method 'clearDeletedDocIds' in BufferedUpdates

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

yubinglei updated LUCENE-9298:
------------------------------
    Summary: Incorrect method 'clearDeletedDocIds' in BufferedUpdates  (was: Incorrect clear order in BufferedUpdates)

> Incorrect method 'clearDeletedDocIds' in BufferedUpdates
> --------------------------------------------------------
>
>                 Key: LUCENE-9298
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9298
>             Project: Lucene - Core
>          Issue Type: Bug
>    Affects Versions: 8.5
>            Reporter: yubinglei
>            Priority: Minor
>              Labels: easyfix, newbie, pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> As mentioned in this 
> [https://github.com/apache/lucene-solr/pull/513#discussion_r399131681]
> the method clearDeletedDocIds in BufferedUpdates.java has a bug, it can't reset bytesUsed correctly
> {code:java}
> void clearDeletedDocIds() {
>   deleteDocIDs.clear();
>   bytesUsed.addAndGet(-deleteDocIDs.size() * BufferedUpdates.BYTES_PER_DEL_DOCID);
> }
> {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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