# RequestAbortedError on bulk indexing happens randomly

**URL:** https://discuss.elastic.co/t/requestabortederror-on-bulk-indexing-happens-randomly/347518
**Category:** Elasticsearch
**Created:** [November 20, 2023, 9:34am UTC](https://discuss.elastic.co/t/requestabortederror-on-bulk-indexing-happens-randomly/347518 "2023-11-20T09:34:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ashan-FCC](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashan-fcc/32/127755_2.png) [@Ashan-FCC](https://discuss.elastic.co/u/Ashan-FCC)
#### Post date: [November 20, 2023, 9:34am UTC](https://discuss.elastic.co/t/requestabortederror-on-bulk-indexing-happens-randomly/347518/1 "2023-11-20T09:34:49Z")

</div>

I use the bulk api to index fairly large objects. My indexing cronjob runs every 30 seconds which will index any objects updated in the last 30 seconds. I have another cronjob that runs at midnight which updates alot of data. During this time I get RequestAbortedError on datadog. What could be the reason for this?  
The statusCode returned in 0  
The error log looks like below

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/2/023b2a8995b48b82bb8080374203cc78b7f018b5.png)

---

<div class="post-metadata">

### Author: ![Ashan-FCC](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashan-fcc/32/127755_2.png) [@Ashan-FCC](https://discuss.elastic.co/u/Ashan-FCC)
#### Post date: [November 20, 2023, 5:23pm UTC](https://discuss.elastic.co/t/requestabortederror-on-bulk-indexing-happens-randomly/347518/2 "2023-11-20T17:23:25Z")

</div>

I just checked the CPU / Memory usage of ES when the errors occurred, and it looks like the CPU usage goes 100% only in one of the nodes in that period

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/d/dd56c5472ba057eb5be7252f6b6701103d766d90.png)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [December 18, 2023, 5:23pm UTC](https://discuss.elastic.co/t/requestabortederror-on-bulk-indexing-happens-randomly/347518/3 "2023-12-18T17:23:52Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
