Skip to content

Commit

Permalink
fix log message
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Handalian <[email protected]>
  • Loading branch information
mch2 committed Sep 3, 2024
1 parent 17f3f6e commit 5bb99a1
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,13 @@ public void onReplicationDone(SegmentReplicationState state) {

@Override
public void onReplicationFailure(SegmentReplicationState state, ReplicationFailedException e, boolean sendShardFailure) {
logger.error("Failed replication for {}", shard.shardId(), e);
logger.error(
() -> new ParameterizedMessage(
"Failed segment replication for {}",
shard.shardId()
),
e
);
if (sendShardFailure) {
shard.failShard("unrecoverable replication failure", e);
}
Expand Down

0 comments on commit 5bb99a1

Please sign in to comment.