mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Retry ES API calls that fail with 410/Gone (#56950)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
07cb4c1e56
commit
4efd26a995
2 changed files with 4 additions and 1 deletions
|
@ -66,6 +66,7 @@ describe('migrationsRetryCallCluster', () => {
|
|||
'RequestTimeout',
|
||||
'AuthenticationException',
|
||||
'AuthorizationException',
|
||||
'Gone',
|
||||
];
|
||||
|
||||
const mockLogger = loggingServiceMock.create();
|
||||
|
|
|
@ -62,7 +62,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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue