1
0
Эх сурвалжийг харах

Make sure shard is not closed when accessing ReplicationGroup

Yannick Welsch 8 жил өмнө
parent
commit
fd57101952

+ 1 - 0
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();
     }