Fix testPeerRecoveryTrimsLocalTranslog (#49385)

7.x uses the transport client, which, when being closed, can throw an IllegalStateException

Closes #49375
This commit is contained in:
Yannick Welsch 2019-11-21 10:03:25 +01:00 committed by GitHub
parent 5b10fd301e
commit 8ee70fa9c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1558,7 +1558,7 @@ public class IndexRecoveryIT extends ESIntegTestCase {
.setSource(Collections.singletonMap("f" + randomIntBetween(1, 10), randomNonNegativeLong()), XContentType.JSON)
.get();
assertThat(response.getResult(), isOneOf(CREATED, UPDATED));
} catch (ElasticsearchException ignored) {
} catch (IllegalStateException | ElasticsearchException ignored) {
}
}
});