From 04180e3adb4c514eb0463237a8b4b25f50fb8e01 Mon Sep 17 00:00:00 2001 From: Marc Handalian Date: Wed, 18 Oct 2023 14:01:57 -0700 Subject: [PATCH] add extra log Signed-off-by: Marc Handalian --- .../src/main/java/org/opensearch/index/shard/IndexShard.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/main/java/org/opensearch/index/shard/IndexShard.java b/server/src/main/java/org/opensearch/index/shard/IndexShard.java index fa29840f1fa8b..5ebfd3863a6cf 100644 --- a/server/src/main/java/org/opensearch/index/shard/IndexShard.java +++ b/server/src/main/java/org/opensearch/index/shard/IndexShard.java @@ -1669,7 +1669,7 @@ ReplicationCheckpoint computeReplicationCheckpoint(SegmentInfos segmentInfos) th return latestReplicationCheckpoint; } final Map metadataMap = store.getSegmentMetadataMap(segmentInfos); - return new ReplicationCheckpoint( + final ReplicationCheckpoint checkpoint = new ReplicationCheckpoint( this.shardId, getOperationPrimaryTerm(), segmentInfos.getGeneration(), @@ -1678,6 +1678,8 @@ ReplicationCheckpoint computeReplicationCheckpoint(SegmentInfos segmentInfos) th getEngine().config().getCodec().getName(), metadataMap ); + logger.trace("Recomputed ReplicationCheckpoint for shard {}", checkpoint); + return checkpoint; } /**