Github user tzulitai commented on the issue:

    https://github.com/apache/flink/pull/2861
  
    Thanks! There wasn't any discussion on switching to a pure HTTP client, but 
we might need to take into consideration the effort it will take and benefits 
the result will offer if we were to go for that.
    
    Regarding handling the `Throwable`: I'm currently trying out 
`BulkItemResponse.getFailure().getStatus` which returns a `RestStatus`. From 
the Javadocs, it seems like we can just target some of the status codes: 
https://www.javadoc.io/doc/org.elasticsearch/elasticsearch/2.3.5. I'm currently 
thinking about just handling `TOO_MANY_REQUESTS` (ex. EsRejectedExecutionEx is 
one of these) and `INTERNAL_SERVER_ERROR` (the timeout exception has this 
code). What do you think? 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to