Skip to content

Commit

Permalink
don't throw index missing when updating number of replicas on a close…
Browse files Browse the repository at this point in the history
…d index
  • Loading branch information
kimchy committed Apr 4, 2012
1 parent b78680c commit f512f43
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -311,7 +311,8 @@ public Builder updateNumberOfReplicas(int numberOfReplicas, String... indices) t
for (String index : indices) {
IndexRoutingTable indexRoutingTable = indicesRouting.get(index);
if (indexRoutingTable == null) {
throw new IndexMissingException(new Index(index));
// ignore index missing failure, its closed...
continue;
}
int currentNumberOfReplicas = indexRoutingTable.shards().get(0).size() - 1; // remove the required primary
IndexRoutingTable.Builder builder = new IndexRoutingTable.Builder(index);
Expand Down

1 comment on commit f512f43

@dadoonet
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit relative to issue #1845

Please sign in to comment.