Clarify the message when replication start schedules nothing "Nothing to replicate" suggested the destinations were up to date, but it actually means no push task was scheduled because no destination matched the given options or the authGroup cannot read the requested projects. Reword it as a warning that says so. Change-Id: I3339df6bb622dff193626fa8fa13e23649a67829
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationStarter.java b/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationStarter.java index e715747..fc88c34 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationStarter.java +++ b/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationStarter.java
@@ -71,7 +71,10 @@ processing.writeStdErr("We are interrupted while waiting replication to complete"); } } else { - processing.writeStdOut("Nothing to replicate"); + processing.writeStdOut( + "WARNING: No replication scheduled. No configured destination matched the requested" + + " projects, ref, URL, or remote, or the destination's authGroup cannot read" + + " them"); } } }
diff --git a/src/main/resources/Documentation/cmd-start.md b/src/main/resources/Documentation/cmd-start.md index 47989a1..724728e 100644 --- a/src/main/resources/Documentation/cmd-start.md +++ b/src/main/resources/Documentation/cmd-start.md
@@ -58,8 +58,8 @@ replication on just the affected project can update the mirrors. -If you get message "Nothing to replicate" while running this command, -it may be caused by several reasons, such as you give a wrong url +If you get message "WARNING: No replication scheduled" while running this +command, it may be caused by several reasons, such as you give a wrong url pattern in command options, or the authGroup in the `replication.config` has no read access for the replicated projects.