Skip to content

Commit d95a337

Browse files
pheyoschrisronline
authored andcommitted
Increase bulk request timeout during esArchiver load (elastic#83657)
This PR fixes some timeouts during esArchive load by increasing the request timeout.
1 parent f235f19 commit d95a337

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/kbn-es-archiver/src/lib/docs/index_doc_records_stream.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function createIndexDocRecordsStream(
4444
);
4545
});
4646

47-
const resp = await client.bulk({ body });
47+
const resp = await client.bulk({ requestTimeout: 2 * 60 * 1000, body });
4848
if (resp.errors) {
4949
throw new Error(`Failed to index all documents: ${JSON.stringify(resp, null, 2)}`);
5050
}

0 commit comments

Comments
 (0)