logger.info("Executing bulk {} actions", bulk.numberOfActions());
if (bulk.numberOfActions() > 0) {
BulkResponse response = bulk.execute().actionGet();
logger.info("Bulk actions tooks {} ms", response.getTookInMillis());
if (response.hasFailures()) {
logger.warn("failed to execute bulk: {}", response.buildFailureMessage());
}
} else {
logger.info("Sorry nothing to do");
}
}