# Handling ESRejections on bulk operations using transport client

**URL:** <https://discuss.elastic.co/t/handling-esrejections-on-bulk-operations-using-transport-client/77049>\
**Category:** Elasticsearch\
**Created:** [March 1, 2017, 8:50pm UTC](https://discuss.elastic.co/t/handling-esrejections-on-bulk-operations-using-transport-client/77049 "2017-03-01T20:50:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashokm](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@ashokm](https://discuss.elastic.co/u/ashokm)\
**Post date:** [March 1, 2017, 8:50pm UTC](https://discuss.elastic.co/t/handling-esrejections-on-bulk-operations-using-transport-client/77049/1 "2017-03-01T20:50:51Z")

</div>

Hi All,

When doing bulk indexing using transport client, if there are rejections from ES because queues are full, how do we retry these?

I tried Retry.on(EsRejectedExecutionException.class)..withSyncBackoff, but looks like it doesn't work with Transport client.

Any suggestions and if anyone can share a sample code, that would be great

Thanks  
Ashok

---

<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:** [March 29, 2017, 8:50pm UTC](https://discuss.elastic.co/t/handling-esrejections-on-bulk-operations-using-transport-client/77049/2 "2017-03-29T20:50:51Z")

</div>

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