also ignore index missing failure when refreshing, as it might happen (we refresh on shards that might have not been allocated yet)

This commit is contained in:
Shay Banon 2011-10-14 17:50:02 +02:00
parent 8c776bee97
commit a76737ceaf
1 changed files with 4 additions and 0 deletions

View File

@ -35,6 +35,7 @@ import org.elasticsearch.common.settings.Settings;
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 @@ public class TransportRefreshAction extends TransportBroadcastOperationAction<Re
if (actual instanceof IllegalIndexShardStateException) {
return true;
}
if (actual instanceof IndexMissingException) {
return true;
}
return false;
}