Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

disable random exceptions on open where we open a reader and do checks (it will be reset next time thru the loop)

Robert Muir4726814c8205
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterOnDiskFull.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterOnDiskFull.java
index 681c9d0fa6a..63d3b7af0ae 100644
--- a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterOnDiskFull.java
+++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterOnDiskFull.java
@@ -365,6 +365,7 @@ public class TestIndexWriterOnDiskFull extends LuceneTestCase {
// we succeeded, we see all docs added, and if we
// failed, we see either all docs or no docs added
// (transactional semantics):
+ dir.setRandomIOExceptionRateOnOpen(0.0);
try {
reader = DirectoryReader.open(dir);
} catch (IOException e) {