You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by be...@apache.org on 2025/06/17 10:58:37 UTC

(lucene) branch main updated: Adjust base knn format assert assertOffHeapByteSize (#14797)

This is an automated email from the ASF dual-hosted git repository.

benwtrent pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/main by this push:
     new fd5ba47cb24 Adjust base knn format assert assertOffHeapByteSize (#14797)
fd5ba47cb24 is described below

commit fd5ba47cb24116a21d302786b1838e3bbcaa839e
Author: Benjamin Trent <be...@gmail.com>
AuthorDate: Tue Jun 17 06:58:32 2025 -0400

    Adjust base knn format assert assertOffHeapByteSize (#14797)
    
    * Disable HNSW connectedComponents (#14214)
    
    * Adjusting assertOffHeapByteSize method to allow sub-class override
---
 .../org/apache/lucene/tests/index/BaseKnnVectorsFormatTestCase.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseKnnVectorsFormatTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseKnnVectorsFormatTestCase.java
index 1a6c25a075d..837e71335f6 100644
--- a/lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseKnnVectorsFormatTestCase.java
+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseKnnVectorsFormatTestCase.java
@@ -2115,7 +2115,7 @@ public abstract class BaseKnnVectorsFormatTestCase extends BaseIndexFileFormatTe
     }
   }
 
-  static void assertOffHeapByteSize(LeafReader r, String fieldName) throws IOException {
+  protected void assertOffHeapByteSize(LeafReader r, String fieldName) throws IOException {
     var fieldInfo = r.getFieldInfos().fieldInfo(fieldName);
 
     if (r instanceof CodecReader codecReader) {