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

    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

          Issue Links

            Activity

              People

              • Assignee:
                simonw Simon Willnauer
                Reporter:
                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