uschindler commented on PR #1118:
URL: https://github.com/apache/solr/pull/1118#issuecomment-1311949363

   For current lucene queries the problem may occur when you pass a BytesRef 
(it is a ref) only while building the query. If you change the bytesRef 
afterwards it fails.
   
   IMHO queries should clone the terms passed in. Sor has the big problem of 
over-reusing mutable references, although this is really no problem anymore as 
JVM can handle that with escape analysis and won't allocate instances. Actually 
"reusing" is bad in newer java versions, as it will populate the heap with 
useless temporary (but reused) objects.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to