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 5ebcd2b51792..71506dc312c0 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 Lucene99HnswScalarQuantizedVectorsFormat( } 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 a5f4baf07631..93e3e3b4cf82 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 @@ -220,9 +220,6 @@ public void testLimits() { 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, () ->