Adjust hlrc data streams integration test (#60804)
Backport of #60746 to wait for at least a single shard to be allocated for a backing index of a data stream, so that total store size is larger than zero (which is what the tests expects). Closes #60461
This commit is contained in:
parent
b210aaf666
commit
9163c9ce36
|
@ -2051,6 +2051,9 @@ public class IndicesClientIT extends ESRestHighLevelClientTestCase {
|
|||
IndicesClient indices = highLevelClient().indices();
|
||||
response = execute(createDataStreamRequest, indices::createDataStream, indices::createDataStreamAsync);
|
||||
assertThat(response.isAcknowledged(), equalTo(true));
|
||||
ensureHealth(dataStreamName, (request -> {
|
||||
request.addParameter("wait_for_status", "yellow");
|
||||
}));
|
||||
|
||||
GetDataStreamRequest getDataStreamRequest = new GetDataStreamRequest(dataStreamName);
|
||||
GetDataStreamResponse getDataStreamResponse = execute(getDataStreamRequest, indices::getDataStream, indices::getDataStreamAsync);
|
||||
|
|
Loading…
Reference in New Issue