Skip to content

Commit 736a057

Browse files
committed
also ignore index missing failure when refreshing, as it might happen (we refresh on shards that might have not been allocated yet)
1 parent 8b88925 commit 736a057

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/elasticsearch/src/main/java/org/elasticsearch/action/admin/indices/refresh/TransportRefreshAction.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import org.elasticsearch.index.engine.Engine;
3636
import org.elasticsearch.index.shard.IllegalIndexShardStateException;
3737
import org.elasticsearch.index.shard.service.IndexShard;
38+
import org.elasticsearch.indices.IndexMissingException;
3839
import org.elasticsearch.indices.IndicesService;
3940
import org.elasticsearch.threadpool.ThreadPool;
4041
import org.elasticsearch.transport.TransportService;
@@ -84,6 +85,9 @@ public class TransportRefreshAction extends TransportBroadcastOperationAction<Re
8485
if (actual instanceof IllegalIndexShardStateException) {
8586
return true;
8687
}
88+
if (actual instanceof IndexMissingException) {
89+
return true;
90+
}
8791
return false;
8892
}
8993

0 commit comments

Comments
 (0)