Hello. Not sure if canRetry method is intended to behave like this.
I have an index where sometimes I try to index the document that is already indexed getting
CONFLICT(409) which is fine and should not be retried.
Sometimes, when under pressure, ES might respond with
TOO_MANY_REQUESTS(429) to some of the items in the bulk. These should be retried.
When the combination of these responses ends up in
canRetry returns false and nothing is retried.
I would expect that canRetry is applied to each
BulkItemResponse and based on that retried or not.
Is this intended?