@@ -1633,20 +1633,20 @@ public Tuple<GatedCloseable<SegmentInfos>, ReplicationCheckpoint> getLatestSegme
1633
1633
*/
1634
1634
public boolean isSegmentReplicationAllowed () {
1635
1635
if (indexSettings .isSegRepEnabled () == false ) {
1636
- logger .warn ("Attempting to perform segment replication when it is not enabled on the index" );
1636
+ logger .trace ("Attempting to perform segment replication when it is not enabled on the index" );
1637
1637
return false ;
1638
1638
}
1639
1639
if (getReplicationTracker ().isPrimaryMode ()) {
1640
- logger .warn ("Shard is in primary mode and cannot perform segment replication as a replica." );
1640
+ logger .trace ("Shard is in primary mode and cannot perform segment replication as a replica." );
1641
1641
return false ;
1642
1642
}
1643
1643
if (this .routingEntry ().primary ()) {
1644
- logger .warn ("Shard routing is marked primary thus cannot perform segment replication as replica" );
1644
+ logger .trace ("Shard routing is marked primary thus cannot perform segment replication as replica" );
1645
1645
return false ;
1646
1646
}
1647
1647
if (state ().equals (IndexShardState .STARTED ) == false
1648
1648
&& (state () == IndexShardState .POST_RECOVERY && shardRouting .state () == ShardRoutingState .INITIALIZING ) == false ) {
1649
- logger .warn (
1649
+ logger .trace (
1650
1650
() -> new ParameterizedMessage (
1651
1651
"Shard is not started or recovering {} {} and cannot perform segment replication as a replica" ,
1652
1652
state (),
@@ -1656,7 +1656,7 @@ public boolean isSegmentReplicationAllowed() {
1656
1656
return false ;
1657
1657
}
1658
1658
if (getReplicationEngine ().isEmpty ()) {
1659
- logger .warn (
1659
+ logger .trace (
1660
1660
() -> new ParameterizedMessage (
1661
1661
"Shard does not have the correct engine type to perform segment replication {}." ,
1662
1662
getEngine ().getClass ()
@@ -4811,8 +4811,8 @@ private String copySegmentFiles(
4811
4811
}
4812
4812
}
4813
4813
} finally {
4814
- logger .info ("Downloaded segments here: {}" , downloadedSegments );
4815
- logger .info ("Skipped download for segments here: {}" , skippedSegments );
4814
+ logger .trace ("Downloaded segments here: {}" , downloadedSegments );
4815
+ logger .trace ("Skipped download for segments here: {}" , skippedSegments );
4816
4816
}
4817
4817
return segmentNFile ;
4818
4818
}
0 commit comments