|
From: Juri L. <no...@gi...> - 2026-10-14 15:04:18
|
Branch: refs/heads/develop Home: https://github.com/eXist-db/exist Commit: 6d4adaeeca80eda5ed94d0116dea314d51461778 https://github.com/eXist-db/exist/commit/6d4adaeeca80eda5ed94d0116dea314d51461778 Author: duncdrum <d.p...@me...> Date: 2026-10-09 (Fri, 09 Oct 2026) Changed paths: M extensions/vector/src/main/java/org/exist/vector/OnnxVectorProvider.java Log Message: ----------- [bugfix] OnnxVectorProvider: do not close output tensors the Result already owns extractSentenceEmbedding and meanPool closed the output tensor via try-with-resources, and embed() then closed it again when its try-with-resources released the Result. onnxruntime logged 'Closing an already closed tensor.' at WARN on every embedding call, which floods the log while indexing a vector field. Co-Authored-By: Claude Sonnet 5.5 <no...@an...> Commit: ee93af2477e66af294ba8016dd9a1e8d1df5b329 https://github.com/eXist-db/exist/commit/ee93af2477e66af294ba8016dd9a1e8d1df5b329 Author: duncdrum <d.p...@me...> Date: 2026-10-09 (Fri, 09 Oct 2026) Changed paths: M extensions/indexes/vector-it/src/test/java/xquery/lucene/VectorSearchEmbeddingIT.java Log Message: ----------- [test] Guard against double-closing ONNX output tensors embedDoesNotCloseTensorsTwice embeds three texts with the real model and fails if onnxruntime logs anything. It fails on the previous OnnxVectorProvider (one warning per embedding) and passes with the fix. Co-Authored-By: Claude Sonnet 5.5 <no...@an...> Commit: 2047f531827c34aa0709d2138c892bbba15a93a8 https://github.com/eXist-db/exist/commit/2047f531827c34aa0709d2138c892bbba15a93a8 Author: Juri Leino <gi...@li...> Date: 2026-10-14 (Wed, 14 Oct 2026) Changed paths: M extensions/indexes/vector-it/src/test/java/xquery/lucene/VectorSearchEmbeddingIT.java M extensions/vector/src/main/java/org/exist/vector/OnnxVectorProvider.java Log Message: ----------- Merge pull request #6821 from duncdrum/bugfix/onnx-tensor-double-close [bugfix] OnnxVectorProvider: do not close output tensors the Result already owns Compare: https://github.com/eXist-db/exist/compare/08211e94c83f...2047f531827c To unsubscribe from these emails, change your notification settings at https://github.com/eXist-db/exist/settings/notifications |