Local Gateway: Don't block meta operations (delete index) on an index that is not recovered due to not all shards being available, closes #433.
This commit is contained in:
parent
ed9d9aa358
commit
6c9120a51b
|
@ -30,6 +30,7 @@ public enum ClusterBlockLevel {
|
|||
METADATA(2);
|
||||
|
||||
public static ClusterBlockLevel[] ALL = new ClusterBlockLevel[]{READ, WRITE, METADATA};
|
||||
public static ClusterBlockLevel[] READ_WRITE = new ClusterBlockLevel[]{READ, WRITE};
|
||||
|
||||
private final int id;
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ import static org.elasticsearch.common.util.concurrent.EsExecutors.*;
|
|||
*/
|
||||
public class LocalGateway extends AbstractLifecycleComponent<Gateway> implements Gateway, ClusterStateListener {
|
||||
|
||||
public static final ClusterBlock INDEX_NOT_RECOVERED_BLOCK = new ClusterBlock(3, "index not recovered (not enough nodes with shards allocated found)", ClusterBlockLevel.ALL);
|
||||
public static final ClusterBlock INDEX_NOT_RECOVERED_BLOCK = new ClusterBlock(3, "index not recovered (not enough nodes with shards allocated found)", ClusterBlockLevel.READ_WRITE);
|
||||
|
||||
private File location;
|
||||
|
||||
|
|
Loading…
Reference in New Issue