Also account for state not recovered in BlobStoreCacheService
Following #61726 after a test failure
This commit is contained in:
parent
ced2c140fe
commit
d94d6b5b70
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue