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

BinaryResponseWriter should not attempt cast to Utf8CharSequence

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 9.4
    • query
    • None

    Description

      This is a followup of various rollbacks (mainly LUCENE-8805 but also SOLR-14013) in the use of Utf8CharSequence. basically this change https://github.com/apache/solr/commit/5a694ea26ff862ecc874ca798135073d300c2234#diff-95210db504bf3cbe4635d3d09e5e90f990d684dcd324f683e93cb498d171f63dL309 removed the creation of StoredFields based on Utf8CharSequence values, making this BinaryResponseWriter instanceof check useless (https://github.com/apache/solr/blob/66d6a55895fa51074e325d260bbdc14f8beb560a/solr/core/src/java/org/apache/solr/response/BinaryResponseWriter.java#L100).
      What I see here is an unneeded call to StoredField#getCharSequenceValue for every stored field in the query response, so I am proposing to remove it.

      Attachments

        Issue Links

          Activity

            People

              houston Houston Putman
              stillalex Alex Deparvu
              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 - 2h 10m
                  2h 10m