.withType(TransportRequestOptions.Type.RECOVERY)
.withTimeout(internalActionLongTimeout);
while (operation != null) {
if (shard.state() == IndexShardState.CLOSED) {
throw new IndexShardClosedException(request.shardId());
}
operations.add(operation);
ops += 1;
size += operation.estimateSize();