Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-7781

FieldFaceting BytesRef reuse bug

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.1
    • 5.3
    • Facet Module
    • None

    Description

      FieldFaceting on a string field has

      new TermQuery( new Term(field, bytesRef.clone() ) )
      

      The bytesRef needs to be deep copied (and clone() only implements a shallow copy).
      This causes to the query inserted into the filter cache to be changed after the fact, and causes both cache misses and even cache growth way past configured limits due to failures to remove old cache items (SOLR-7777).

      Attachments

        Activity

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

          People

            yseeley@gmail.com Yonik Seeley
            yseeley@gmail.com Yonik Seeley
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment