diff --git a/src/main/java/org/elasticsearch/index/shard/IndexShard.java b/src/main/java/org/elasticsearch/index/shard/IndexShard.java index d8e9a332013..3b7a039cb00 100644 --- a/src/main/java/org/elasticsearch/index/shard/IndexShard.java +++ b/src/main/java/org/elasticsearch/index/shard/IndexShard.java @@ -222,7 +222,7 @@ public class IndexShard extends AbstractIndexShardComponent { this.codecService = codecService; this.shardSuggestService = shardSuggestService; this.shardBitsetFilterCache = shardBitsetFilterCache; - assert clusterService.lifecycleState() == Lifecycle.State.STARTED; // otherwise localNode is still none; + assert clusterService.lifecycleState() == Lifecycle.State.STARTED : "expected lifecycle to be started but was: " + clusterService.lifecycleState() ; // otherwise localNode is still none; this.localNode = clusterService.localNode(); state = IndexShardState.CREATED; this.refreshInterval = indexSettings.getAsTime(INDEX_REFRESH_INTERVAL, EngineConfig.DEFAULT_REFRESH_INTERVAL);