Skip to content

Commit 5ca53d3

Browse files
committed
accidentally remove suppressforbidden
1 parent 786e4f1 commit 5ca53d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/main/java/org/elasticsearch/index/codec/vectors/IVFVectorsWriter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import org.apache.lucene.util.InfoStream;
3333
import org.apache.lucene.util.VectorUtil;
3434
import org.elasticsearch.core.IOUtils;
35+
import org.elasticsearch.core.SuppressForbidden;
3536

3637
import java.io.IOException;
3738
import java.io.UncheckedIOException;
@@ -243,6 +244,7 @@ static IVFVectorsReader getIVFReader(KnnVectorsReader vectorsReader, String fiel
243244
}
244245

245246
@Override
247+
@SuppressForbidden(reason = "require usage of Lucene's IOUtils#deleteFilesIgnoringExceptions(...)")
246248
public final void mergeOneField(FieldInfo fieldInfo, MergeState mergeState) throws IOException {
247249
rawVectorDelegate.mergeOneField(fieldInfo, mergeState);
248250
if (fieldInfo.getVectorEncoding().equals(VectorEncoding.FLOAT32)) {

0 commit comments

Comments
 (0)