mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-09 06:25:07 +00:00
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:
parent
8c776bee97
commit
a76737ceaf
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user