SOLR-13193: LeaderTragicEventTest doesn't catch NoSuchFileException when corrupting files

This commit is contained in:
Dawid Weiss 2019-01-31 11:55:05 +01:00
parent 66fb333bdd
commit a552be9a1e
1 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@ import static org.hamcrest.CoreMatchers.is;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.lang.invoke.MethodHandles;
import java.nio.file.NoSuchFileException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
@ -132,7 +133,7 @@ public class LeaderTragicEventTest extends SolrCloudTestCase {
try {
mockDir.corruptFiles(Collections.singleton(file));
} catch (RuntimeException | FileNotFoundException e) {
} catch (RuntimeException | FileNotFoundException | NoSuchFileException e) {
// merges can lead to this exception
}
}