You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2025/04/23 07:32:30 UTC
(lucene) branch main updated: Make TestIndexWriterDelete.testDeleteAllRepeated a monster test and force FSDirectory to prevent OOM. #14508 (#14526)
This is an automated email from the ASF dual-hosted git repository.
dweiss 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 1753717a93f Make TestIndexWriterDelete.testDeleteAllRepeated a monster test and force FSDirectory to prevent OOM. #14508 (#14526)
1753717a93f is described below
commit 1753717a93fc7e081f48b8770b36331c7c8ae089
Author: Dawid Weiss <da...@carrotsearch.com>
AuthorDate: Wed Apr 23 09:32:24 2025 +0200
Make TestIndexWriterDelete.testDeleteAllRepeated a monster test and force FSDirectory to prevent OOM. #14508 (#14526)
---
.../core/src/test/org/apache/lucene/index/TestIndexWriterDelete.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterDelete.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterDelete.java
index fe114e5cc51..c2fb6de2943 100644
--- a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterDelete.java
+++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterDelete.java
@@ -42,6 +42,7 @@ import org.apache.lucene.search.IndexSearcher;
import org.apache.lucene.search.ScoreDoc;
import org.apache.lucene.search.TermQuery;
import org.apache.lucene.store.Directory;
+import org.apache.lucene.store.FSDirectory;
import org.apache.lucene.tests.analysis.MockAnalyzer;
import org.apache.lucene.tests.analysis.MockTokenizer;
import org.apache.lucene.tests.index.MockRandomMergePolicy;
@@ -480,10 +481,10 @@ public class TestIndexWriterDelete extends LuceneTestCase {
// Verify that we can call deleteAll repeatedly without leaking field numbers such that we trigger
// OOME
// on creation of FieldInfos. See https://issues.apache.org/jira/browse/LUCENE-9617
- @Nightly // Takes 1-2 minutes to run on a 16-core machine
+ @Monster("Takes 1-2 minutes but writes tons of files to disk.")
public void testDeleteAllRepeated() throws IOException, InterruptedException {
final int breakingFieldCount = 50_000_000;
- try (Directory dir = newDirectory()) {
+ try (Directory dir = FSDirectory.open(createTempDir())) {
// Avoid flushing until the end of the test to save time.
IndexWriterConfig conf =
newIndexWriterConfig()