Skip to content

Commit 1744e17

Browse files
authored
Make sure index is healthy before calling _frozen in ReindexDatastreamIndexTransportActionIT (elastic#122623)
1 parent 5426cd9 commit 1744e17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/migrate/src/internalClusterTest/java/org/elasticsearch/xpack/migrate/action/ReindexDatastreamIndexTransportActionIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ public void testTsdbStartEndSet() throws Exception {
611611
public void testIndexUnfrozen() {
612612
var sourceIndex = randomAlphaOfLength(20).toLowerCase(Locale.ROOT);
613613
safeGet(indicesAdmin().create(new CreateIndexRequest(sourceIndex)));
614-
614+
ensureHealth(sourceIndex);
615615
// add doc with timestamp
616616
String time = DateFieldMapper.DEFAULT_DATE_TIME_FORMATTER.formatMillis(System.currentTimeMillis());
617617
var doc = String.format(Locale.ROOT, "{\"%s\":\"%s\"}", DEFAULT_TIMESTAMP_FIELD, time);

0 commit comments

Comments
 (0)