Also account for state not recovered in BlobStoreCacheService

Following #61726 after a test failure
This commit is contained in:
Tanguy Leroux 2020-09-01 12:07:01 +02:00
parent ced2c140fe
commit d94d6b5b70
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@ import org.elasticsearch.action.support.PlainActionFuture;
import org.elasticsearch.action.support.TransportActions;
import org.elasticsearch.client.Client;
import org.elasticsearch.client.OriginSettingClient;
import org.elasticsearch.cluster.block.ClusterBlockException;
import org.elasticsearch.cluster.metadata.IndexMetadata;
import org.elasticsearch.cluster.service.ClusterService;
import org.elasticsearch.common.bytes.BytesReference;
@ -252,6 +253,7 @@ public class BlobStoreCacheService {
private static boolean isExpectedCacheGetException(Exception e) {
return TransportActions.isShardNotAvailableException(e)
|| e instanceof ConnectTransportException
|| e instanceof ClusterBlockException
|| ExceptionsHelper.unwrapCause(e) instanceof NodeClosedException;
}