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:
Nhat Nguyen 2018-09-26 22:38:25 -04:00
parent 12d94e44b8
commit ea9b33527e
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}