From fd5710195212534c260e2d496adee26e12f190f7 Mon Sep 17 00:00:00 2001 From: Yannick Welsch Date: Fri, 21 Jul 2017 09:57:07 +0200 Subject: [PATCH] Make sure shard is not closed when accessing ReplicationGroup --- core/src/main/java/org/elasticsearch/index/shard/IndexShard.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/org/elasticsearch/index/shard/IndexShard.java b/core/src/main/java/org/elasticsearch/index/shard/IndexShard.java index 8637b79ca35..c03492f382f 100644 --- a/core/src/main/java/org/elasticsearch/index/shard/IndexShard.java +++ b/core/src/main/java/org/elasticsearch/index/shard/IndexShard.java @@ -1733,6 +1733,7 @@ public class IndexShard extends AbstractIndexShardComponent implements IndicesCl */ public ReplicationGroup getReplicationGroup() { verifyPrimary(); + verifyNotClosed(); return getEngine().seqNoService().getReplicationGroup(); }