Skip to content

Commit 79ac8de

Browse files
committed
decrease log severity to info for common repair failures
1 parent 6c413fa commit 79ac8de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/spotify/reaper/service/SegmentRunner.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void run() {
9797
}
9898

9999
public static void postpone(AppContext context, RepairSegment segment) {
100-
LOG.warn("Postponing segment {}", segment.getId());
100+
LOG.info("Postponing segment {}", segment.getId());
101101
context.storage.updateRepairSegment(segment.with()
102102
.state(RepairSegment.State.NOT_STARTED)
103103
.coordinatorHost(null)
@@ -237,7 +237,7 @@ boolean canRepair(RepairSegment segment, String keyspace, JmxProxy coordinator)
237237
try (JmxProxy hostProxy = context.jmxConnectionFactory.connect(hostName)) {
238238
int pendingCompactions = hostProxy.getPendingCompactions();
239239
if (pendingCompactions > MAX_PENDING_COMPACTIONS) {
240-
LOG.warn("SegmentRunner declined to repair segment {} because of too many pending "
240+
LOG.info("SegmentRunner declined to repair segment {} because of too many pending "
241241
+ "compactions (> {}) on host \"{}\"", segmentId, MAX_PENDING_COMPACTIONS,
242242
hostProxy.getHost());
243243
String msg = String.format("Postponed due to pending compactions (%d)",
@@ -246,7 +246,7 @@ boolean canRepair(RepairSegment segment, String keyspace, JmxProxy coordinator)
246246
return false;
247247
}
248248
if (hostProxy.isRepairRunning()) {
249-
LOG.warn("SegmentRunner declined to repair segment {} because one of the hosts ({}) was "
249+
LOG.info("SegmentRunner declined to repair segment {} because one of the hosts ({}) was "
250250
+ "already involved in a repair", segmentId, hostProxy.getHost());
251251
String msg = "Postponed due to affected hosts already doing repairs";
252252
repairRunner.updateLastEvent(msg);

0 commit comments

Comments
 (0)