Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-9298

Improve RAM accounting in BufferedUpdates when deleted doc IDs and terms are cleared

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Lucene Fields:
      New, Patch Available

      Description

      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

      void clearDeletedDocIds() {
        deleteDocIDs.clear();
        bytesUsed.addAndGet(-deleteDocIDs.size() * BufferedUpdates.BYTES_PER_DEL_DOCID);
      }
      

       

       

        Attachments

          Activity

            People

            • Assignee:
              simonw Simon Willnauer
              Reporter:
              Jushiro yubinglei

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 40m
                1h 40m

                  Issue deployment