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.
This commit is contained in:
Tom Ross 2016-11-02 08:47:16 +00:00 committed by Clebert Suconic
parent bec6c0bf18
commit 3de65682ce
1 changed files with 1 additions and 1 deletions

View File

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