Skip to content

Commit

Permalink
revert bulk failed log
Browse files Browse the repository at this point in the history
  • Loading branch information
weizijun committed Jul 12, 2022
1 parent b3c0f68 commit f6bd4fb
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,7 @@ public void afterBulk(long executionId, BulkRequest request, BulkResponse respon
)
);
numFailed.addAndGet(failures.size());
logger.info(
"Shard [{}] failed to populate rollup index, failures summery: failed count: [{}], failed sample: [{}]",
indexShard.shardId(),
failures.size(),
failures.values().iterator().next()
);
logger.trace("Shard [{}] failed to populate rollup index. Failures: [{}]", indexShard.shardId(), failures);
logger.error("Shard [{}] failed to populate rollup index. Failures: [{}]", indexShard.shardId(), failures);
}
}

Expand All @@ -197,7 +191,7 @@ public void afterBulk(long executionId, BulkRequest request, Throwable failure)
if (failure != null) {
long items = request.numberOfActions();
numFailed.addAndGet(items);
logger.info(() -> format("Shard [%s] failed to populate rollup index.", indexShard.shardId()), failure);
logger.error(() -> format("Shard [%s] failed to populate rollup index.", indexShard.shardId()), failure);
}
}
};
Expand Down

0 comments on commit f6bd4fb

Please sign in to comment.