diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene99/Lucene99HnswScalarQuantizedVectorsFormat.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene99/Lucene99HnswScalarQuantizedVectorsFormat.java index 5ebcd2b5179..71506dc312c 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/lucene99/Lucene99HnswScalarQuantizedVectorsFormat.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene99/Lucene99HnswScalarQuantizedVectorsFormat.java @@ -120,10 +120,6 @@ public final class Lucene99HnswScalarQuantizedVectorsFormat extends KnnVectorsFo } this.maxConn = maxConn; this.beamWidth = beamWidth; - if (numMergeWorkers > 1 && mergeExec == null) { - throw new IllegalArgumentException( - "No executor service passed in when " + numMergeWorkers + " merge workers are requested"); - } if (numMergeWorkers == 1 && mergeExec != null) { throw new IllegalArgumentException( "No executor service is needed as we'll use single thread to merge"); diff --git a/lucene/core/src/test/org/apache/lucene/codecs/lucene99/TestLucene99HnswQuantizedVectorsFormat.java b/lucene/core/src/test/org/apache/lucene/codecs/lucene99/TestLucene99HnswQuantizedVectorsFormat.java index 0dc7261acb6..65ef03d2ef7 100644 --- a/lucene/core/src/test/org/apache/lucene/codecs/lucene99/TestLucene99HnswQuantizedVectorsFormat.java +++ b/lucene/core/src/test/org/apache/lucene/codecs/lucene99/TestLucene99HnswQuantizedVectorsFormat.java @@ -217,9 +217,6 @@ public class TestLucene99HnswQuantizedVectorsFormat extends BaseKnnVectorsFormat expectThrows( IllegalArgumentException.class, () -> new Lucene99HnswScalarQuantizedVectorsFormat(20, 100, 0, 7, false, 0.8f, null)); - expectThrows( - IllegalArgumentException.class, - () -> new Lucene99HnswScalarQuantizedVectorsFormat(20, 100, 100, 7, false, null, null)); expectThrows( IllegalArgumentException.class, () ->