Skip to content

Commit 5e87da8

Browse files
committed
Fix test failures.
1 parent da6f631 commit 5e87da8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lucene/test-framework/src/java/org/apache/lucene/tests/store/MockDirectoryWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ public synchronized void close() throws IOException {
975975
// and will deadlock since the lock on `this` is already taken by close(), so
976976
// createOutput() won't be able to take it.
977977
new IndexWriter(
978-
this, new IndexWriterConfig(null).setMergeScheduler(new SerialMergeScheduler()))
978+
this, new IndexWriterConfig(null).setCommitOnClose(false))
979979
.close();
980980
DirectoryReader ir2 = DirectoryReader.open(this);
981981
int numDocs2 = ir2.numDocs();

0 commit comments

Comments
 (0)