You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jb...@apache.org on 2016/11/04 13:29:08 UTC

[05/13] activemq-artemis git commit: ARTEMIS-833 maxHops defaults to 0 when creating artemis cluster configuration through cli

ARTEMIS-833 maxHops defaults to 0 when creating artemis cluster configuration through cli

https://issues.apache.org/jira/browse/ARTEMIS-833

The generated broker.xml configuration file has the <max-hops/> element
set to 0. This is very confusing since it effectively disables message
load balancing and stop cluster from forwarding messages to other nodes
in hte cluster. This should be set to at least 1.


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/749b831a
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/749b831a
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/749b831a

Branch: refs/heads/ARTEMIS-780
Commit: 749b831adce7ed4e43f12ad7852bdea8b9ad8c64
Parents: 88d4c7e
Author: Tom Ross <To...@redhat.com>
Authored: Wed Nov 2 08:47:16 2016 +0000
Committer: jbertram <jb...@apache.com>
Committed: Thu Nov 3 20:35:15 2016 -0500

----------------------------------------------------------------------
 .../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/749b831a/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 62de0ef..ecb9e49 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
@@ -136,7 +136,7 @@ public class Create extends InputAbstract {
    boolean clustered = false;
 
    @Option(name = "--max-hops", description = "Number of hops on the cluster configuration")
-   int maxHops = 0;
+   int maxHops = 1;
 
    @Option(name = "--message-load-balancing", description = "Load balancing policy on cluster. [ON_DEMAND (default) | STRICT | OFF]")
    MessageLoadBalancingType messageLoadBalancing = MessageLoadBalancingType.ON_DEMAND;