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:
Jason Tedor 2019-02-22 17:31:45 -05:00
parent feb25c71a0
commit e4e96b8181
No known key found for this signature in database
GPG Key ID: FA89F05560F16BC5
1 changed files with 1 additions and 1 deletions

View File

@ -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);
})); }));