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:
kimchy 2010-10-15 11:04:54 +02:00
parent ed9d9aa358
commit 6c9120a51b
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -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;