Add missing log statement if replication was canceled Change-Id: Id06bae985cfdb000c66743ccd3c5d9f56d34d681
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java b/src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java index fdf6109..889e94d 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java +++ b/src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java
@@ -301,7 +301,9 @@ MDC.put(ID_MDC_KEY, IdGenerator.format(id)); RunwayStatus status = pool.requestRunway(this); if (!status.isAllowed()) { - if (!status.isCanceled()) { + if (status.isCanceled()) { + repLog.info("PushOp for replication to {} was canceled and thus won't be rescheduled", uri); + } else { repLog.info( "Rescheduling replication to {} to avoid collision with the in-flight push [{}].", uri,