@@ -1641,20 +1641,20 @@ public Tuple<GatedCloseable<SegmentInfos>, ReplicationCheckpoint> getLatestSegme
1641
1641
*/
1642
1642
public boolean isSegmentReplicationAllowed () {
1643
1643
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" );
1645
1645
return false ;
1646
1646
}
1647
1647
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." );
1649
1649
return false ;
1650
1650
}
1651
1651
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" );
1653
1653
return false ;
1654
1654
}
1655
1655
if (state ().equals (IndexShardState .STARTED ) == false
1656
1656
&& (state () == IndexShardState .POST_RECOVERY && shardRouting .state () == ShardRoutingState .INITIALIZING ) == false ) {
1657
- logger .warn (
1657
+ logger .trace (
1658
1658
() -> new ParameterizedMessage (
1659
1659
"Shard is not started or recovering {} {} and cannot perform segment replication as a replica" ,
1660
1660
state (),
@@ -1664,7 +1664,7 @@ public boolean isSegmentReplicationAllowed() {
1664
1664
return false ;
1665
1665
}
1666
1666
if (getReplicationEngine ().isEmpty ()) {
1667
- logger .warn (
1667
+ logger .trace (
1668
1668
() -> new ParameterizedMessage (
1669
1669
"Shard does not have the correct engine type to perform segment replication {}." ,
1670
1670
getEngine ().getClass ()
@@ -4815,8 +4815,8 @@ private String copySegmentFiles(
4815
4815
}
4816
4816
}
4817
4817
} 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 );
4820
4820
}
4821
4821
return segmentNFile ;
4822
4822
}
0 commit comments