Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-8828

Creating cluster-connection in CLI must require discovery-group or static-connector

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 11.0.0.Alpha1
    • Fix Version/s: 11.0.0.Beta1
    • Component/s: JMS
    • Labels:
      None

      Description

      cluster-connection must require discovery-group or static-connector (exclusively, not both can be defined) but currently it's possible to create it without it:

      [standalone@localhost:9990 /] /subsystem=messaging-activemq/server=default/cluster-connection=my-cluster1:add(connector-name=connector, cluster-connection-address=jms)
      {
          "outcome" => "success",
          "response-headers" => {
              "operation-requires-reload" => true,
              "process-state" => "reload-required"
          }
      }
      [standalone@localhost:9990 /] /subsystem=messaging-activemq/server=default/cluster-connection=my-cluster1:read-resource
      {
          "outcome" => "success",
          "result" => {
              "allow-direct-connections-only" => false,
              "call-failover-timeout" => -1L,
              "call-timeout" => 30000L,
              "check-period" => 30000L,
              "cluster-connection-address" => "jms",
              "confirmation-window-size" => 1048576,
              "connection-ttl" => 60000L,
              "connector-name" => "connector",
              "discovery-group" => undefined,
              "initial-connect-attempts" => -1,
              "max-hops" => 1,
              "max-retry-interval" => 2000L,
              "message-load-balancing-type" => "ON_DEMAND",
              "min-large-message-size" => 102400,
              "notification-attempts" => 2,
              "notification-interval" => 1000L,
              "producer-window-size" => -1,
              "reconnect-attempts" => -1,
              "retry-interval" => 500L,
              "retry-interval-multiplier" => 1.0,
              "static-connectors" => undefined,
              "use-duplicate-detection" => true
          },
          "response-headers" => {"process-state" => "reload-required"}
      }
      

      Such cluster-connection will not work and is hard to see where is the problem.

      All credit for finding this issue goes to wayne tech, thanks.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jmesnil Jeff Mesnil
                  Reporter:
                  mnovak Miroslav Novak
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: