Revert "ARTEMIS-833 maxHops defaults to 0 when creating artemis cluster configuration through cli" this is breaking client size load balance example.
This reverts commit 3de65682cecfaf2f37ae41cd709d983cd0418c3c. Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/e89f6a1b Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/e89f6a1b Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/e89f6a1b Branch: refs/heads/ARTEMIS-780 Commit: e89f6a1bfdc6a29422022717e231234c150f314b Parents: 9f7fc88 Author: Clebert Suconic <[email protected]> Authored: Wed Nov 2 18:52:36 2016 -0400 Committer: Clebert Suconic <[email protected]> Committed: Wed Nov 2 19:00:09 2016 -0400 ---------------------------------------------------------------------- .../main/java/org/apache/activemq/artemis/cli/commands/Create.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/e89f6a1b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java ---------------------------------------------------------------------- diff --git a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java index 5bd55e9..77a2e68 100644 --- a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java +++ b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java @@ -137,7 +137,7 @@ public class Create extends InputAbstract { boolean clustered = false; @Option(name = "--max-hops", description = "Number of hops on the cluster configuration") - int maxHops = 1; + int maxHops = 0; @Option(name = "--message-load-balancing", description = "Load balancing policy on cluster. [ON_DEMAND (default) | STRICT | OFF]") MessageLoadBalancingType messageLoadBalancing = MessageLoadBalancingType.ON_DEMAND;
