Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-20741

[GSS](7.3.z) Migration tool adds several jgroups channels when migrating from 6.4 to 7.3

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Optional
    • None
    • 7.3.4.GA
    • Clustering, Migration
    • None
    • False
    • False
    • Undefined
    • Workaround Exists
    • Hide

      modify configuration file manually.

      Change jgroups channels to the following like a default.

                   <channels default="ee">
                       <channel name="ee" stack="udp" cluster="ejb"/>
      

      Remove channel property in transport element like `channel="ee-web"` from all cache-container.

                   <cache-container name="web" aliases="standard-session-cache" default-cache="repl" module="org.jboss.as.clustering.web.infinispan">
                       <transport lock-timeout="60000"/>
      
      Show
      modify configuration file manually. Change jgroups channels to the following like a default. <channels default = "ee" > <channel name= "ee" stack= "udp" cluster= "ejb" /> Remove channel property in transport element like `channel="ee-web"` from all cache-container. <cache-container name= "web" aliases= "standard-session-cache" default -cache= "repl" module= "org.jboss.as.clustering.web.infinispan" > <transport lock-timeout= "60000" />
    • Hide
      • Migrate from 6.4.23 to 7.3.4.
        1. execute migration tool.
        $ export JBOSS_HOME_7_3_4=<EAP 7.3.4 jboss_home as a target>
        $ export JBOSS_HOME_6_4_23=<EAP 6.4.23 jboss_home as a source>
        $ ./<JBOSS_HOME_7_3_4>/bin/jboss-server-migration.sh --source ./<JBOSS_HOME_6_4_23> -interactive false
        

        2. check the configuration files including ha profiles.
        standalone-ha.xml # migrated
        standalone-ha.xml.beforeMigration # default

      • JGRP000012
        1. After the migration, create two servers.
        $ export JBOSS_HOME=<EAP 7.3.4 jboss_home>
        $ cd $JBOSS_HOME
        $ cp -a standalone/ svr01
        $ cp -a standalone/ svr02
        

        2. deploy distributable application. (hello.zip)

        $ unzip hello.zip and build ($ mvn package)
        $ cp ./hello/target/hello.war $JBOSS_HOME/svr01/deployments
        $ cp ./hello/target/hello.war $JBOSS_HOME/svr02/deployments
        

        3. startup servers

        $ ./bin/standalone.sh -Djboss.server.base.dir=./svr01 -c standalone-ha.xml -Djboss.node.name=jboss_node1
        $ ./bin/standalone.sh -Djboss.server.base.dir=./svr02 -c standalone-ha.xml -Djboss.node.name=jboss_node2 -Djboss.socket.binding.port-offset=1000
        

        4. check the log files (./svr01/log/server.log and ./svr02/log/server.log)

        WARN  [org.jgroups.protocols.UDP] (thread-13,ee-ejb,jboss_node1) JGRP000012: discarded message from different cluster ee-web (our cluster is ee-ejb). Sender was jboss_node1 (received 25 identical messages from jboss_node1 in the last 61237 ms)
        
      Show
      Migrate from 6.4.23 to 7.3.4. 1. execute migration tool. $ export JBOSS_HOME_7_3_4=<EAP 7.3.4 jboss_home as a target> $ export JBOSS_HOME_6_4_23=<EAP 6.4.23 jboss_home as a source> $ ./<JBOSS_HOME_7_3_4>/bin/jboss-server-migration.sh --source ./<JBOSS_HOME_6_4_23> -interactive false 2. check the configuration files including ha profiles. standalone-ha.xml # migrated standalone-ha.xml.beforeMigration # default JGRP000012 1. After the migration, create two servers. $ export JBOSS_HOME=<EAP 7.3.4 jboss_home> $ cd $JBOSS_HOME $ cp -a standalone/ svr01 $ cp -a standalone/ svr02 2. deploy distributable application. (hello.zip) $ unzip hello.zip and build ($ mvn package ) $ cp ./hello/target/hello.war $JBOSS_HOME/svr01/deployments $ cp ./hello/target/hello.war $JBOSS_HOME/svr02/deployments 3. startup servers $ ./bin/standalone.sh -Djboss.server.base.dir=./svr01 -c standalone-ha.xml -Djboss.node.name=jboss_node1 $ ./bin/standalone.sh -Djboss.server.base.dir=./svr02 -c standalone-ha.xml -Djboss.node.name=jboss_node2 -Djboss.socket.binding.port-offset=1000 4. check the log files (./svr01/log/server.log and ./svr02/log/server.log) WARN [org.jgroups.protocols.UDP] (thread-13,ee-ejb,jboss_node1) JGRP000012: discarded message from different cluster ee-web (our cluster is ee-ejb). Sender was jboss_node1 (received 25 identical messages from jboss_node1 in the last 61237 ms)

    Description

      JBoss Server Migration tool adds several jgroups channels to target configuration when migrating from EAP 6.4 to 7.3.
      These channels are used by each cache-containers, this settings causes JGRP000012 when consisting the cluster.

      Migrated jgroups channel and cache-container settings are follows.

                   <channels default="auto">
                       <channel name="ee-singleton" stack="udp"/>
                       <channel name="ee-web" stack="udp"/>
                       <channel name="ee-ejb" stack="udp"/>
                       <channel name="ee-hibernate" stack="udp"/>
                       <channel name="auto" stack="udp"/>
      ...
                   <cache-container name="singleton" aliases="cluster ha-partition" default-cache="default">
                       <transport channel="ee-singleton" lock-timeout="60000"/>
      ...
                   <cache-container name="web" aliases="standard-session-cache" default-cache="repl" module="org.jboss.as.clustering.web.infinispan">
                       <transport channel="ee-web" lock-timeout="60000"/>
      ...
                   <cache-container name="ejb" aliases="sfsb sfsb-cache" default-cache="repl" module="org.jboss.as.clustering.ejb3.infinispan">
                       <transport channel="ee-ejb" lock-timeout="60000"/>
      ...
                   <cache-container name="hibernate" default-cache="local-query" module="org.infinispan.hibernate-cache">
                       <transport channel="ee-hibernate" lock-timeout="60000"/>
      

      Default jgroups channel on EAP 7.x is as follows. A single channel is used.

                   <channels default="ee">
                       <channel name="ee" stack="udp" cluster="ejb"/>
      

      EAP shows JGRP000012 sometimes with migrated configuration.

      5:38:58,737 WARN  [org.jgroups.protocols.UDP] (thread-13,ee-ejb,jboss_node1) JGRP000012: discarded message from different cluster ee-web (our cluster is ee-ejb). Sender was jboss_node1 (received 25 identical messages from jboss_node1 in the last 61237 ms)
      15:39:08,536 WARN  [org.jgroups.protocols.UDP] (thread-8,ee-web,jboss_node1) JGRP000012: discarded message from different cluster ee-ejb (our cluster is ee-web). Sender was jboss_node1 (received 25 identical messages from jboss_node1 in the last 61218 ms)
      15:39:08,575 WARN  [org.jgroups.protocols.UDP] (thread-8,ee-web,jboss_node1) JGRP000012: discarded message from different cluster ee-ejb (our cluster is ee-web). Sender was jboss_node2 (received 11 identical messages from jboss_node2 in the last 60061 ms)
      15:39:08,597 WARN  [org.jgroups.protocols.UDP] (thread-9,ee-ejb,jboss_node1) JGRP000012: discarded message from different cluster ee-web (our cluster is ee-ejb). Sender was jboss_node2 (received 11 identical messages from jboss_node2 in the last 60009 ms)
      
      • migrated configuration
        attachments.zip/734_configuration_migrated_from_6423
      • server logs
        attachments.zip/logs_JGRP000012

      Attachments

        1. attachments.zip
          240 kB
        2. hello.zip
          3 kB

        Issue Links

          Activity

            People

              rhn-cservice-bbaranow Bartosz Baranowski
              rhn-support-hdaicho Hiroki Daicho (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: