File tree 1 file changed +2
-0
lines changed
src/test/java/org/elasticsearch/index/store
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 31
31
import org .elasticsearch .ExceptionsHelper ;
32
32
import org .elasticsearch .common .logging .ESLogger ;
33
33
import org .elasticsearch .common .logging .Loggers ;
34
+ import org .elasticsearch .common .lucene .Lucene ;
34
35
import org .elasticsearch .common .settings .ImmutableSettings ;
35
36
import org .elasticsearch .common .settings .Settings ;
36
37
import org .elasticsearch .common .unit .TimeValue ;
@@ -1305,6 +1306,7 @@ public void testMarkCorruptedOnTruncatedSegmentsFile() throws IOException {
1305
1306
// expected
1306
1307
}
1307
1308
assertTrue (store .isMarkedCorrupted ());
1309
+ Lucene .cleanLuceneIndex (store .directory ()); // we have to remove the index since it's corrupted and might fail the MocKDirWrapper checkindex call
1308
1310
store .close ();
1309
1311
}
1310
1312
You can’t perform that action at this time.
0 commit comments