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

    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            simonw Simon Willnauer
            Jushiro yubinglei
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            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

                Slack

                  Issue deployment