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

server scale down keeps data in client's data/ejb-xa-recovery and transactions on client aren't commited

XMLWordPrintable

    • Hide

      it can be reproduced using test:

      git clone git@gitlab.mw.lab.eng.bos.redhat.com:msimka/openshift-eap-tests.git
      cd openshift-eap-tests.git
      git checkout EAP7-1192_scaledown
      # create file test.properties
      
      mvn clean test -P72 -Dtest=EjbTxnRemotingScaleDownTest#testTxStatelessServerSecondCommitThrowRmFail -Dconsole-log-level=DEBUG
      

      test.properties

      xtf.openshift.url=https://master.all-in-one-msimka-002.dynamic.xpaas:8443
      xtf.openshift.namespace=wip-namespace
      xtf.bm.namespace=wip-builds-namespace
      
      xtf.eap.72.image=docker-registry.upshift.redhat.com/kwills/eap-cd-openshift-rhel8:18.0-EAP7-1216
      xtf.eap.72.properties.eap.imagestream.name=jboss-eap73-openshift
      
      xtf.eap.72.version=7.2.0.GA
      xtf.eap.properties.location=/opt/eap
      xtf.eap.72.templates.repo=git://github.com/jboss-container-images/jboss-eap-7-openshift-image.git,git://github.com/jboss-container-images/redhat-sso-7-openshift-image.git
      xtf.eap.72.templates.branch=eap72,v7.3.0.GA
      
      xtf.maven.proxy.url=http://maven.all-in-one-043.dynamic.xpaas/nexus/content/groups/public/
      
      # this might be needed if oc login command fails, see test suite logs
      #xtf.openshift.binary.path=/home/msimka/.minishift/cache/oc/v3.11.0/linux/oc
      xtf.operator.image=quay.io/ochaloup/wildfly-operator:20190930
      xtf.operator.resources.context=
      
      # specify correct path oc binary
      xtf.openshift.binary.path=<oc_binary_path>
      
      Show
      it can be reproduced using test: git clone git@gitlab.mw.lab.eng.bos.redhat.com:msimka/openshift-eap-tests.git cd openshift-eap-tests.git git checkout EAP7-1192_scaledown # create file test.properties mvn clean test -P72 -Dtest=EjbTxnRemotingScaleDownTest#testTxStatelessServerSecondCommitThrowRmFail -Dconsole-log-level=DEBUG test.properties xtf.openshift.url=https: //master.all-in-one-msimka-002.dynamic.xpaas:8443 xtf.openshift.namespace=wip-namespace xtf.bm.namespace=wip-builds-namespace xtf.eap.72.image=docker-registry.upshift.redhat.com/kwills/eap-cd-openshift-rhel8:18.0-EAP7-1216 xtf.eap.72.properties.eap.imagestream.name=jboss-eap73-openshift xtf.eap.72.version=7.2.0.GA xtf.eap.properties.location=/opt/eap xtf.eap.72.templates.repo=git: //github.com/jboss-container-images/jboss-eap-7-openshift-image.git,git://github.com/jboss-container-images/redhat-sso-7-openshift-image.git xtf.eap.72.templates.branch=eap72,v7.3.0.GA xtf.maven.proxy.url=http: //maven.all-in-one-043.dynamic.xpaas/nexus/content/groups/ public / # this might be needed if oc login command fails, see test suite logs #xtf.openshift.binary.path=/home/msimka/.minishift/cache/oc/v3.11.0/linux/oc xtf. operator .image=quay.io/ochaloup/wildfly- operator :20190930 xtf. operator .resources.context= # specify correct path oc binary xtf.openshift.binary.path=<oc_binary_path>

      this follows up on WFWIP-206

      While testing tx recovery in OpenShift I see that scale down of pod that has transaction in-doubt on it isn't successful

      Scenario:

      ejb client (app tx-client, pod tx-client-0):

      • EJB business method
        • lookup remote EJB
        • enlist XA resource 1 to transaction
        • enlist XA resource 2 to transaction
        • call remote EJB

      ejb server (app tx-server, pod tx-server-0):

      • EJB business method
        • enlist XA resource 1 to transaction
        • enlist XA resource 2 to transaction

      testTxStatelessServerSecondCommitThrowRmFail

      ejb server XA resource 2 fails with XAException(XAException.XAER_RMFAIL)

      Then the test calls scale down (size from 1 to 0) on tx-server pod. Server scale down completes but sometimes there some records left in <JBOSS_HOME>/standalone/data/ejb-xa-recovery on tx-client and transactions on client aren't commited.

              ochaloup@redhat.com Ondrej Chaloupka (Inactive)
              msimka@redhat.com Martin Simka
              Martin Simka Martin Simka
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: