# Queries related to BulkProcessor

**URL:** https://discuss.elastic.co/t/queries-related-to-bulkprocessor/101944
**Category:** Elasticsearch
**Created:** [September 27, 2017, 7:55am UTC](https://discuss.elastic.co/t/queries-related-to-bulkprocessor/101944 "2017-09-27T07:55:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sambit\_Kabi](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@Sambit\_Kabi](https://discuss.elastic.co/u/Sambit_Kabi)
#### Post date: [September 27, 2017, 7:55am UTC](https://discuss.elastic.co/t/queries-related-to-bulkprocessor/101944/1 "2017-09-27T07:55:58Z")

</div>

Hello,

I have a few queries related to BulkProcessor:

1. If there are multiple threads associated with Bulk processor there is no guarantee when the index requests will be executed as it is asynchronous. Is there a way to make sure that all the index requests are completed before closing the processor and going forward? Does using flush operation guarantee this ? if not can I use multiple threads each having a separate single threaded bulk processor?

2. If bulk thread pool type is used for bulk processing and if I set the requests number as 20000 in bulk processor,  
Do I need to change the queue size of the pool to 20000? A fixed thread pool internally uses a linked queue ,so does the queue hold the rejected requests?

---

<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: [October 25, 2017, 7:56am UTC](https://discuss.elastic.co/t/queries-related-to-bulkprocessor/101944/2 "2017-10-25T07:56:09Z")

</div>

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