Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-5134

Bad default TCPPING with TCP mode configuration for clustering in jgroups-channelfactory-stacks.xml

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Critical
    • EAP_EWP 5.1.0
    • EAP_EWP 5.1.0_CR3
    • Clustering
    • None
    • Jboss EAP 5.1.0_CR3
      Linux Redhat RHEL 5.1
      Jgroups 2.6.16.GA

    • Documentation (Ref Guide, User Guide, etc.)
    • Workaround Exists
    • Hide

      Replace the parameter jboss.jgroups.tcp.tcpping.initial_hosts by jgroups.tcpping.initial_hosts

      Show
      Replace the parameter jboss.jgroups.tcp.tcpping.initial_hosts by jgroups.tcpping.initial_hosts
    • Low

    Description

      I choose to switch from UDP to TCP and from MPING to TCPPING for Jboss EAP cluster configuration.

      In the file server/all/deploy/cluster/jgroups-channelfactory.sar/META-INF/jgroups-channelfactory-stacks.xml

      the default MPING configuration for TCP is :

      <stack name="tcp"
      ...
      <TCPPING timeout="3000"
      initial_hosts="${jboss.jgroups.tcp.tcpping.initial_hosts:localhost[7600],localhost[7601]}"
      port_range="1"
      num_initial_members="3"/>
      ...
      </stack>

      but this configuration do not work, when I configure it by editing jgroups-channelfactory-stacks.xml
      , I have this error :

      14:50:02,751 ERROR [TCPPING] failed creating initial list of hosts
      java.net.UnknownHostException: ${jboss.jgroups.tcp.tcpping.initial_hosts}:192.168.0.1
      ...
      14:50:02,754 ERROR [AbstractKernelController] Error installing to Start: name=HAPartition state=Create
      java.lang.RuntimeException: Failure creating multiplexed Channel
      ...
      Caused by: org.jgroups.ChannelException: unable to setup the protocol stack: the following properties in TCPPING are not recognized:

      {num_initial_members=2, timeout=3000}
      ...
      Caused by: java.lang.IllegalArgumentException: the following properties in TCPPING are not recognized: {num_initial_members=2, timeout=3000}

      After investigating/searching, I found that the following configuration work :

      <stack name="tcp"
      ...
      <TCPPING timeout="3000"
      initial_hosts="${jgroups.tcpping.initial_hosts:localhost[7600],localhost[7601]}"
      port_range="1"
      num_initial_members="3"/>
      ...
      </stack>

      There is a problem with initial_hosts :
      jboss.jgroups.tcp.tcpping.initial_hosts -> DO NOT WORKS
      jgroups.tcpping.initial_hosts -> WORKS

      I my case, I use :

      <TCPPING timeout="3000"
      initial_hosts="${jgroups.tcpping.initial_hosts:163.106.38.166[7600],163.106.38.166[7601]}"
      port_range="1"
      num_initial_members="2"/>

      Now I need to fix 2 following problems in cluster

      11:16:59,787 WARN [loggerI18N] [com.arjuna.ats.internal.jta.recovery.xarecovery1] Local XARecoveryModule.xaRecovery got XA exception javax.transaction.xa.XAException: Error trying to connect to provider java:/DefaultJMSProvider, XAException.XAER_RMERR

      11:16:59,926 WARN [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.
      11:16:59,930 ERROR [ExceptionUtil] ConnectionFactoryEndpoint[jboss.messaging.connectionfactory:service=ClusterPullConnectionFactory] createFailoverConnectionDelegate [la-ebg8ugeg-1-cfu6ugeg-ze88j8-m421y2j4]
      javax.jms.JMSSecurityException: User JBM.SUCKER is NOT authenticated
      ....
      11:16:59,970 ERROR [ClusterConnectionManager] Failed to start connection info
      javax.jms.JMSSecurityException: User JBM.SUCKER is NOT authenticated
      ....

      PS : I have opened a ticket to add information about How To configure Cluster in TCP mode with TCPPING in Jboss EAP 5.x documentation :
      https://jira.jboss.org/browse/JBPAPP-5126

      Attachments

        Issue Links

          Activity

            People

              bstansbe@redhat.com Brian Stansberry
              yannick92 Yannick LE NY (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: