Make sure shard is not closed when accessing ReplicationGroup

This commit is contained in:
Yannick Welsch 2017-07-21 09:57:07 +02:00
parent 618ff159eb
commit fd57101952
1 changed files with 1 additions and 0 deletions

View File

@ -1733,6 +1733,7 @@ public class IndexShard extends AbstractIndexShardComponent implements IndicesCl
*/
public ReplicationGroup getReplicationGroup() {
verifyPrimary();
verifyNotClosed();
return getEngine().seqNoService().getReplicationGroup();
}