Fix testPeerRecoveryTrimsLocalTranslog (#49385)
7.x uses the transport client, which, when being closed, can throw an IllegalStateException Closes #49375
This commit is contained in:
parent
5b10fd301e
commit
8ee70fa9c6
|
@ -1558,7 +1558,7 @@ public class IndexRecoveryIT extends ESIntegTestCase {
|
||||||
.setSource(Collections.singletonMap("f" + randomIntBetween(1, 10), randomNonNegativeLong()), XContentType.JSON)
|
.setSource(Collections.singletonMap("f" + randomIntBetween(1, 10), randomNonNegativeLong()), XContentType.JSON)
|
||||||
.get();
|
.get();
|
||||||
assertThat(response.getResult(), isOneOf(CREATED, UPDATED));
|
assertThat(response.getResult(), isOneOf(CREATED, UPDATED));
|
||||||
} catch (ElasticsearchException ignored) {
|
} catch (IllegalStateException | ElasticsearchException ignored) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue