Expluge delete can cause the shard to reinitialize

es version: 0.90.1


  1. delete more than half of documents from the index
  2. flush
  3. call "/_optimize?only_expunge_deletes=true"


  1. over half of the index spaces are released
  2. 1 of the shards is marked as "initializing" (i.e. yellow in
    elasticsearch head), it is not "relocating/purple" and the cluster state is
    turned to yellow
  3. after the shard is initialized, the cluster become green and another
    shard is doing relocating (purple)

so my question is expunging the index to release disk spaces can trigger
the index to reinitialize/relocating the shards?

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.