TEST: Add engine is closed as expected failure msg
This commit adds "engine is closed" as an expected failure message. This change is due to #33967 in which we might access a closed engine on promotion. Relates #33967
This commit is contained in:
parent
12d94e44b8
commit
ea9b33527e
|
@ -381,7 +381,8 @@ public class IndexLevelReplicationTests extends ESIndexLevelReplicationTestCase
|
|||
indexOnReplica(replicationRequest, shards, replica, primaryPrimaryTerm);
|
||||
successFullyIndexed.set(true);
|
||||
} catch (IllegalStateException ise) {
|
||||
assertThat(ise.getMessage(), either(containsString("is too old")).or(containsString("cannot be a replication target")));
|
||||
assertThat(ise.getMessage(), either(containsString("is too old"))
|
||||
.or(containsString("cannot be a replication target")).or(containsString("engine is closed")));
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue