Skip to content

Commit 824af40

Browse files
authored
Increase bulk request timeout during esArchiver load (#83657) (#83768)
This PR fixes some timeouts during esArchive load by increasing the request timeout.
1 parent 6777d9d commit 824af40

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
@@ -45,7 +45,7 @@ export function createIndexDocRecordsStream(
4545
);
4646
});
4747

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

0 commit comments

Comments
 (0)