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.
This commit is contained in:
parent
feb25c71a0
commit
e4e96b8181
|
@ -337,7 +337,7 @@ public class CcrRepository extends AbstractLifecycleComponent implements Reposit
|
||||||
assert e instanceof ElasticsearchSecurityException == false : e;
|
assert e instanceof ElasticsearchSecurityException == false : e;
|
||||||
logger.warn(new ParameterizedMessage(
|
logger.warn(new ParameterizedMessage(
|
||||||
"{} background renewal of retention lease [{}] failed during restore",
|
"{} background renewal of retention lease [{}] failed during restore",
|
||||||
shardId,
|
indexShard.shardId(),
|
||||||
retentionLeaseId),
|
retentionLeaseId),
|
||||||
e);
|
e);
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in New Issue