diff --git a/server/src/main/java/org/opensearch/action/admin/indices/replication/TransportSegmentReplicationStatsAction.java b/server/src/main/java/org/opensearch/action/admin/indices/replication/TransportSegmentReplicationStatsAction.java index eb2ab7eeba8ff..b15d83de4b3b7 100644 --- a/server/src/main/java/org/opensearch/action/admin/indices/replication/TransportSegmentReplicationStatsAction.java +++ b/server/src/main/java/org/opensearch/action/admin/indices/replication/TransportSegmentReplicationStatsAction.java @@ -175,7 +175,6 @@ protected SegmentReplicationShardStatsResponse shardOperation(SegmentReplication } if (shardRouting.primary()) { - SegmentReplicationPerGroupStats pgs = pressureService.getStatsForShard(indexShard); return new SegmentReplicationShardStatsResponse(pressureService.getStatsForShard(indexShard)); } else if (shardRouting.isSearchOnly()) { SegmentReplicationShardStats segmentReplicationShardStats = calcualteSegmentReplicationShardStats(