diff --git a/src/core/server/elasticsearch/retry_call_cluster.test.ts b/src/core/server/elasticsearch/retry_call_cluster.test.ts index 275bda17ab92fe..b5a5185ab39d91 100644 --- a/src/core/server/elasticsearch/retry_call_cluster.test.ts +++ b/src/core/server/elasticsearch/retry_call_cluster.test.ts @@ -66,6 +66,7 @@ describe('migrationsRetryCallCluster', () => { 'RequestTimeout', 'AuthenticationException', 'AuthorizationException', + 'Gone', ]; const mockLogger = loggingServiceMock.create(); diff --git a/src/core/server/elasticsearch/retry_call_cluster.ts b/src/core/server/elasticsearch/retry_call_cluster.ts index 89d7b88b1675a0..de89f636a9501e 100644 --- a/src/core/server/elasticsearch/retry_call_cluster.ts +++ b/src/core/server/elasticsearch/retry_call_cluster.ts @@ -65,7 +65,9 @@ export function migrationsRetryCallCluster( error instanceof esErrors.ServiceUnavailable || error instanceof esErrors.RequestTimeout || error instanceof esErrors.AuthenticationException || - error instanceof esErrors.AuthorizationException + error instanceof esErrors.AuthorizationException || + // @ts-ignore + error instanceof esErrors.Gone ); }, timer(delay),