diff --git a/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/repository/CcrRepository.java b/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/repository/CcrRepository.java index 8d07d05cdb9..9c580bc2454 100644 --- a/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/repository/CcrRepository.java +++ b/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/repository/CcrRepository.java @@ -337,7 +337,7 @@ public class CcrRepository extends AbstractLifecycleComponent implements Reposit assert e instanceof ElasticsearchSecurityException == false : e; logger.warn(new ParameterizedMessage( "{} background renewal of retention lease [{}] failed during restore", - shardId, + indexShard.shardId(), retentionLeaseId), e); }));