Skip to content

Commit

Permalink
Increase bulk request timeout during esArchiver load (#83657) (#83768)
Browse files Browse the repository at this point in the history
This PR fixes some timeouts during esArchive load by increasing the request timeout.
  • Loading branch information
pheyos authored Nov 19, 2020
1 parent 6777d9d commit 824af40
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function createIndexDocRecordsStream(
);
});

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

0 comments on commit 824af40

Please sign in to comment.