Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

also ignore index missing failure when refreshing, as it might happen…

… (we refresh on shards that might have not been allocated yet)
  • Loading branch information...
commit a76737ceaf2bdf48abf7aebff69831fbe9bcc3c0 1 parent 8c776be
@kimchy kimchy authored
View
4 ...s/elasticsearch/src/main/java/org/elasticsearch/action/admin/indices/refresh/TransportRefreshAction.java
@@ -35,6 +35,7 @@
import org.elasticsearch.index.engine.Engine;
import org.elasticsearch.index.shard.IllegalIndexShardStateException;
import org.elasticsearch.index.shard.service.IndexShard;
+import org.elasticsearch.indices.IndexMissingException;
import org.elasticsearch.indices.IndicesService;
import org.elasticsearch.threadpool.ThreadPool;
import org.elasticsearch.transport.TransportService;
@@ -84,6 +85,9 @@
if (actual instanceof IllegalIndexShardStateException) {
return true;
}
+ if (actual instanceof IndexMissingException) {
+ return true;
+ }
return false;
}
Please sign in to comment.
Something went wrong with that request. Please try again.