[jboss-jira] [JBoss JIRA] (WFLY-5566) org.jboss.as.test.clustering.xsite.XSiteSimpleTestCase#testPutToBackupNotRelayed

Ivan Straka (JIRA) issues at jboss.org
Thu Oct 29 07:53:00 EDT 2015


     [ https://issues.jboss.org/browse/WFLY-5566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan Straka updated WFLY-5566:
------------------------------
    Steps to Reproduce: 
change jboss-eap-7.0/standalone/configuration/standalone-ha.xml and jboss-eap-7.0/standalone/configuration/standalone-full-ha.xml so that jgroups protocol will be used to make cluster:
{code:xml}
    <subsystem xmlns="urn:jboss:domain:jgroups:4.0">
      <channels default="ee">
        <channel stack="udp" name="ee"/>
      </channels>
      <stacks default="tcp">
        <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>
{code}

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 -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*

  was:
unzip /home/hudson/static_build_env/eap/{EAP_VERSION}/jboss-eap-{EAP_VERSION}-testsuite-prepared.zip

change jboss-eap-7.0/standalone/configuration/standalone-ha.xml and jboss-eap-7.0/standalone/configuration/standalone-full-ha.xml so that jgroups protocol will be used to make cluster:
{code:xml}
    <subsystem xmlns="urn:jboss:domain:jgroups:4.0">
      <channels default="ee">
        <channel stack="udp" name="ee"/>
      </channels>
      <stacks default="tcp">
        <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>
{code}

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 -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*



> org.jboss.as.test.clustering.xsite.XSiteSimpleTestCase#testPutToBackupNotRelayed
> --------------------------------------------------------------------------------
>
>                 Key: WFLY-5566
>                 URL: https://issues.jboss.org/browse/WFLY-5566
>             Project: WildFly
>          Issue Type: Bug
>          Components: Clustering, Test Suite
>    Affects Versions: 10.0.0.CR2
>            Reporter: Ivan Straka
>            Assignee: Paul Ferraro
>
> There is org.jboss.as.test.clustering.xsite.XSiteSimpleTestCase#testPutToBackupNotRelayed failing with exception:
> {code:java}
> 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)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list