opensearch-project / k-NN

🆕 Find the k-nearest neighbors (k-NN) for your vector data
https://opensearch.org/docs/latest/search-plugins/knn/index/
Apache License 2.0
152 stars 113 forks source link

Creates a new arraylist for collecting vectors and assigning null after #2065

Closed shatejas closed 2 weeks ago

shatejas commented 3 weeks ago

for OffheapVectorTransfer

Not assigning vector to null is causing bad references for byte and binary cases, the garbage collection is not kicking in causing circuit breaker exceptions when vectors are added individually

Check List

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.