any(BulkShardRequest.class),
bulkShardResponseListener.capture());
final ActionListener<BulkShardResponse> listener = bulkShardResponseListener.getValue();
listener.onFailure(new EsRejectedExecutionException());
// wait, failure retry lock is done in decoupled thread
Thread.sleep(1);
final ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(2);
final AtomicBoolean hadBlocked = new AtomicBoolean(false);