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

org.jboss.as.test.clustering.xsite.XSiteSimpleTestCase#testPutToBackupNotRelayed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 10.0.0.CR2
    • Clustering, Test Suite
    • None
    • Hide

      change jboss-eap-7.0/standalone/configuration/standalone-ha.xml and jboss-eap-7.0/standalone/configuration/standalone-full-ha.xml so that tcpgossip protocol will be used to make cluster:

          <subsystem xmlns="urn:jboss:domain:jgroups:4.0">
            <channels default="ee">
              <channel stack="tcp" name="ee"/>
            </channels>
            <stacks>
              <stack name="udp">
                NO CHANGE
              </stack>
              <stack name="tcp">
                <transport socket-binding="jgroups-tcp" type="TCP"/>
                <protocol type="TCPGOSSIP" xmlns="urn:jboss:domain:jgroups:4.0">
                  <property name="initial_hosts">localhost[12011]</property>
                  <property name="num_initial_members">2</property>
                </protocol>
                <protocol type="MERGE3"/>
                <protocol socket-binding="jgroups-tcp-fd" type="FD_SOCK"/>
                <protocol type="FD"/>
                <protocol type="VERIFY_SUSPECT"/>
                <protocol type="pbcast.NAKACK2"/>
                <protocol type="UNICAST3"/>
                <protocol type="pbcast.STABLE"/>
                <protocol type="pbcast.GMS"/>
                <protocol type="MFC"/>
                <protocol type="FRAG2"/>
              </stack>
            </stacks>
          </subsystem>
      

      run tcpgossip router
      java -cp `pwd`/jboss-eap-7.0/modules/system/layers/base/org/jboss/logging/main/jboss-logging-3.3.0.Final.jar:`pwd`/jboss-eap-7.0/modules/system/layers/base/org/jgroups/main/jgroups-3.6.6.Final.jar org.jgroups.stack.GossipRouter -port 12011 -bindaddress localhost -solinger 0 -sotimeout 0 -expiry 0

      run testsuite
      ./integration-tests.sh -fae -s `pwd`/tools/maven/conf/settings.xml -Dts.clustering -Dts.noSmoke -DextendedTests -Dmaven.test.failure.ignore=true -Dnode0=$MYTESTIP_1 -Dnode1=$MYTESTIP_2 -Dmcast=$MCAST_ADDR -Djboss.dist=`pwd`/jboss-eap-7.0 -Dmaven.repo.local=`pwd`/eap-local-maven-repository -Dtest=*XSiteSimpleTestCase*

      Show
      change jboss-eap-7.0/standalone/configuration/standalone-ha.xml and jboss-eap-7.0/standalone/configuration/standalone-full-ha.xml so that tcpgossip protocol will be used to make cluster: <subsystem xmlns= "urn:jboss:domain:jgroups:4.0" > <channels default= "ee" > <channel stack= "tcp" name= "ee" /> </channels> <stacks> <stack name= "udp" > NO CHANGE </stack> <stack name= "tcp" > <transport socket-binding= "jgroups-tcp" type= "TCP" /> <protocol type= "TCPGOSSIP" xmlns= "urn:jboss:domain:jgroups:4.0" > <property name= "initial_hosts" > localhost[12011] </property> <property name= "num_initial_members" > 2 </property> </protocol> <protocol type= "MERGE3" /> <protocol socket-binding= "jgroups-tcp-fd" type= "FD_SOCK" /> <protocol type= "FD" /> <protocol type= "VERIFY_SUSPECT" /> <protocol type= "pbcast.NAKACK2" /> <protocol type= "UNICAST3" /> <protocol type= "pbcast.STABLE" /> <protocol type= "pbcast.GMS" /> <protocol type= "MFC" /> <protocol type= "FRAG2" /> </stack> </stacks> </subsystem> run tcpgossip router java -cp `pwd`/jboss-eap-7.0/modules/system/layers/base/org/jboss/logging/main/jboss-logging-3.3.0.Final.jar:`pwd`/jboss-eap-7.0/modules/system/layers/base/org/jgroups/main/jgroups-3.6.6.Final.jar org.jgroups.stack.GossipRouter -port 12011 -bindaddress localhost -solinger 0 -sotimeout 0 -expiry 0 run testsuite ./integration-tests.sh -fae -s `pwd`/tools/maven/conf/settings.xml -Dts.clustering -Dts.noSmoke -DextendedTests -Dmaven.test.failure.ignore=true -Dnode0=$MYTESTIP_1 -Dnode1=$MYTESTIP_2 -Dmcast=$MCAST_ADDR -Djboss.dist=`pwd`/jboss-eap-7.0 -Dmaven.repo.local=`pwd`/eap-local-maven-repository -Dtest=*XSiteSimpleTestCase*

      There is org.jboss.as.test.clustering.xsite.XSiteSimpleTestCase#testPutToBackupNotRelayed failing with exception:

      Error Message
      
      expected:<500> but was:<200>
      
      Stacktrace
      
      java.lang.AssertionError: expected:<500> but was:<200>
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotEquals(Assert.java:743)
      	at org.junit.Assert.assertEquals(Assert.java:118)
      	at org.junit.Assert.assertEquals(Assert.java:555)
      	at org.junit.Assert.assertEquals(Assert.java:542)
      	at org.jboss.as.test.clustering.xsite.XSiteSimpleTestCase.testPutToBackupNotRelayed(XSiteSimpleTestCase.java:202)
      
      

            rhn-engineering-rhusar Radoslav Husar
            istraka@redhat.com Ivan Straka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: