Skip to content

Commit 17ad318

Browse files
committed
Increase bulk request timeout during esArchiver load (#83657)
This PR fixes some timeouts during esArchive load by increasing the request timeout.
1 parent f3b4cd4 commit 17ad318

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)