Skip to content

Commit ab26a57

Browse files
committed
Fix shard logged in background lease renewal
The shard logged here is the leader shard but it should be the follower shard since this background retention lease renewal is happening on the follower side. This commit fixes that.
1 parent cbf9f3c commit ab26a57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/repository/CcrRepository.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ public void restoreShard(IndexShard indexShard, SnapshotId snapshotId, Version v
337337
assert e instanceof ElasticsearchSecurityException == false : e;
338338
logger.warn(new ParameterizedMessage(
339339
"{} background renewal of retention lease [{}] failed during restore",
340-
shardId,
340+
indexShard.shardId(),
341341
retentionLeaseId),
342342
e);
343343
}));

0 commit comments

Comments
 (0)