mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-24 17:09:48 +00:00
better lifecycle handling when deleting an index
This commit is contained in:
parent
6f9451f9c6
commit
def8caf7db
@ -175,7 +175,8 @@ public class IndexShardGatewayService extends AbstractIndexShardComponent implem
|
||||
logger.debug("Snapshotting on close ...");
|
||||
snapshot();
|
||||
}
|
||||
// don't really delete the shard gateway if we are primary...
|
||||
// don't really delete the shard gateway if we are *not* primary,
|
||||
// the primary will close it
|
||||
if (!indexShard.routingEntry().primary()) {
|
||||
delete = false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user