Skip to content

Commit f152839

Browse files
authored
Remove InterruptedEx. from snapshot test harness (#112228)
Relates #111957
1 parent 6d886bc commit f152839

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/framework/src/main/java/org/elasticsearch/snapshots/AbstractSnapshotIntegTestCase.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ public static void failReadsAllDataNodes(String repository) {
288288
}
289289
}
290290

291-
public static void waitForBlockOnAnyDataNode(String repository) throws InterruptedException {
291+
public static void waitForBlockOnAnyDataNode(String repository) {
292292
final boolean blocked = waitUntil(() -> {
293293
for (RepositoriesService repositoriesService : internalCluster().getDataNodeInstances(RepositoriesService.class)) {
294294
MockRepository mockRepository = (MockRepository) repositoriesService.repository(repository);
@@ -475,13 +475,13 @@ protected SnapshotInfo createSnapshot(String repositoryName, String snapshot, Li
475475
return createSnapshot(repositoryName, snapshot, indices, Collections.singletonList(NO_FEATURE_STATES_VALUE));
476476
}
477477

478-
protected void createIndexWithRandomDocs(String indexName, int docCount) throws InterruptedException {
478+
protected void createIndexWithRandomDocs(String indexName, int docCount) {
479479
createIndex(indexName);
480480
ensureGreen();
481481
indexRandomDocs(indexName, docCount);
482482
}
483483

484-
protected void indexRandomDocs(String index, int numdocs) throws InterruptedException {
484+
protected void indexRandomDocs(String index, int numdocs) {
485485
logger.info("--> indexing [{}] documents into [{}]", numdocs, index);
486486
IndexRequestBuilder[] builders = new IndexRequestBuilder[numdocs];
487487
for (int i = 0; i < builders.length; i++) {

0 commit comments

Comments
 (0)