[
https://issues.apache.org/jira/browse/LUCENE-9298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17080404#comment-17080404
]
ASF subversion and git services commented on LUCENE-9298:
---------------------------------------------------------
Commit 2935186c5b807394f25ea7a6d42ee3d7dbef5e43 in lucene-solr's branch
refs/heads/master from YuBinglei
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=2935186 ]
LUCENE-9298: Improve RAM accounting in BufferedUpdates when deleted doc IDs and
terms are cleared (#1389)
> Improve RAM accounting in BufferedUpdates when deleted doc IDs and terms are
> cleared
> ------------------------------------------------------------------------------------
>
> 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: 1.5h
> 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: [email protected]
For additional commands, e-mail: [email protected]