Skip to content

Commit

Permalink
Increase bulk request timeout during esArchiver load (elastic#83657) (e…
Browse files Browse the repository at this point in the history
…lastic#83767)

This PR fixes some timeouts during esArchive load by increasing the request timeout.
  • Loading branch information
pheyos authored Nov 19, 2020
1 parent 32a6200 commit 722a2af
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 722a2af

Please sign in to comment.