Skip to content

Commit

Permalink
Change back info to trace logs in target service.
Browse files Browse the repository at this point in the history
Signed-off-by: Rishikesh1159 <[email protected]>
  • Loading branch information
Rishikesh1159 committed Sep 29, 2023
1 parent 19815a8 commit a4df5f5
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public synchronized void onNewCheckpoint(final ReplicationCheckpoint receivedChe
// if the shard is in any state
if (replicaShard.state().equals(IndexShardState.CLOSED)) {
// ignore if shard is closed
logger.info(() -> "Ignoring checkpoint, Shard is closed");
logger.trace(() -> "Ignoring checkpoint, Shard is closed");
return;
}
updateLatestReceivedCheckpoint(receivedCheckpoint, replicaShard);
Expand Down Expand Up @@ -281,7 +281,7 @@ public void onReplicationFailure(
});
}
} else {
logger.info(
logger.trace(
() -> new ParameterizedMessage("Ignoring checkpoint, shard not started {} {}", receivedCheckpoint, replicaShard.state())
);
}
Expand Down Expand Up @@ -330,7 +330,7 @@ protected void updateVisibleCheckpoint(long replicationId, IndexShard replicaSha
final TransportRequestOptions options = TransportRequestOptions.builder()
.withTimeout(recoverySettings.internalActionTimeout())
.build();
logger.info(
logger.trace(
() -> new ParameterizedMessage(
"Updating Primary shard that replica {}-{} is synced to checkpoint {}",
replicaShard.shardId(),
Expand All @@ -347,7 +347,7 @@ protected void updateVisibleCheckpoint(long replicationId, IndexShard replicaSha
final ActionListener<Void> listener = new ActionListener<>() {
@Override
public void onResponse(Void unused) {
logger.info(
logger.trace(
() -> new ParameterizedMessage(
"Successfully updated replication checkpoint {} for replica {}",
replicaShard.shardId(),
Expand Down Expand Up @@ -386,7 +386,7 @@ private DiscoveryNode getPrimaryNode(ShardRouting primaryShard) {
protected boolean processLatestReceivedCheckpoint(IndexShard replicaShard, Thread thread) {
final ReplicationCheckpoint latestPublishedCheckpoint = latestReceivedCheckpoint.get(replicaShard.shardId());
if (latestPublishedCheckpoint != null && latestPublishedCheckpoint.isAheadOf(replicaShard.getLatestReplicationCheckpoint())) {
logger.info(
logger.trace(
() -> new ParameterizedMessage(
"Processing latest received checkpoint for shard {} {}",
replicaShard.shardId(),
Expand Down Expand Up @@ -448,7 +448,7 @@ void startReplication(final SegmentReplicationTarget target) {
target.fail(e, false);
return;
}
logger.info(() -> new ParameterizedMessage("Added new replication to collection {}", target.description()));
logger.trace(() -> new ParameterizedMessage("Added new replication to collection {}", target.description()));
threadPool.generic().execute(new ReplicationRunner(replicationId));
}

Expand Down Expand Up @@ -573,7 +573,7 @@ private void forceReplication(ForceSyncRequest request, ActionListener<Transport
@Override
public void onReplicationDone(SegmentReplicationState state) {
try {
logger.info(
logger.trace(
() -> new ParameterizedMessage(
"[shardId {}] [replication id {}] Force replication Sync complete to {}, timing data: {}",
shardId,
Expand Down

0 comments on commit a4df5f5

Please sign in to comment.