@@ -1641,20 +1641,20 @@ public Tuple<GatedCloseable<SegmentInfos>, ReplicationCheckpoint> getLatestSegme
16411641 */
16421642 public boolean isSegmentReplicationAllowed () {
16431643 if (indexSettings .isSegRepEnabled () == false ) {
1644- logger .warn ("Attempting to perform segment replication when it is not enabled on the index" );
1644+ logger .trace ("Attempting to perform segment replication when it is not enabled on the index" );
16451645 return false ;
16461646 }
16471647 if (getReplicationTracker ().isPrimaryMode ()) {
1648- logger .warn ("Shard is in primary mode and cannot perform segment replication as a replica." );
1648+ logger .trace ("Shard is in primary mode and cannot perform segment replication as a replica." );
16491649 return false ;
16501650 }
16511651 if (this .routingEntry ().primary ()) {
1652- logger .warn ("Shard routing is marked primary thus cannot perform segment replication as replica" );
1652+ logger .trace ("Shard routing is marked primary thus cannot perform segment replication as replica" );
16531653 return false ;
16541654 }
16551655 if (state ().equals (IndexShardState .STARTED ) == false
16561656 && (state () == IndexShardState .POST_RECOVERY && shardRouting .state () == ShardRoutingState .INITIALIZING ) == false ) {
1657- logger .warn (
1657+ logger .trace (
16581658 () -> new ParameterizedMessage (
16591659 "Shard is not started or recovering {} {} and cannot perform segment replication as a replica" ,
16601660 state (),
@@ -1664,7 +1664,7 @@ public boolean isSegmentReplicationAllowed() {
16641664 return false ;
16651665 }
16661666 if (getReplicationEngine ().isEmpty ()) {
1667- logger .warn (
1667+ logger .trace (
16681668 () -> new ParameterizedMessage (
16691669 "Shard does not have the correct engine type to perform segment replication {}." ,
16701670 getEngine ().getClass ()
@@ -4815,8 +4815,8 @@ private String copySegmentFiles(
48154815 }
48164816 }
48174817 } finally {
4818- logger .info ("Downloaded segments here: {}" , downloadedSegments );
4819- logger .info ("Skipped download for segments here: {}" , skippedSegments );
4818+ logger .trace ("Downloaded segments here: {}" , downloadedSegments );
4819+ logger .trace ("Skipped download for segments here: {}" , skippedSegments );
48204820 }
48214821 return segmentNFile ;
48224822 }
0 commit comments