Skip to content

Commit

Permalink
Local Gateway: Don't block meta operations (delete index) on an index…
Browse files Browse the repository at this point in the history
… that is not recovered due to not all shards being available, closes #433.
  • Loading branch information
kimchy committed Oct 15, 2010
1 parent ed9d9aa commit 6c9120a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -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;

Expand Down
Expand Up @@ -64,7 +64,7 @@
*/
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;

Expand Down

0 comments on commit 6c9120a

Please sign in to comment.