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

Graceful shutdown doesn't work with JTS

    XMLWordPrintable

Details

    • Hide
      git clone http://git.app.eng.bos.redhat.com/git/jbossqe-eap-tests-transactions.gitexport JBOSS_HOME=... (downloadable at http://download.eng.brq.redhat.com/devel/candidates/JBEAP/)
      
      DS_PROPS="-Dds0.db=postgresql -Dds0.jdbc.driver.url=http://www.qa.jboss.com/jdbc-drivers-products/EAP/7.1.0/postgresql94/jdbc4/postgresql-9.4.1209.jar -Dds0.jdbc.xa-class=org.postgresql.xa.PGXADataSource -Dds0.jdbc.url=jdbc:postgresql://gen-vm006.mw.lab.eng.bos.redhat.com:5432/crashrec -Dds0.db.name=crashrec -Dds0.user=crashrec -Dds0.pass=crashrec -Dds0.jdbc.driver.jar=postgresql-driver.jar "
      
      mvn clean verify -Djboss.dist=$JBOSS_HOME -am -pl jbossts -DfailIfNoTests=false -Dsurefire.forked.process.timeout=0 -Djbossts.noJTA -Dmaven.repo.local=path_to_eap-local-maven-repository -Deap -Dversion.eap=7.1.0.Beta1-redhat-3 -Dsurefire.rerunFailingTestsCount=0 -Dtest=JPAGracefulShutdownTestCase#serverShouldRefuseStartNewTx $DS_PROPS
      
      Show
      git clone http: //git.app.eng.bos.redhat.com/git/jbossqe-eap-tests-transactions.gitexport JBOSS_HOME=... (downloadable at http://download.eng.brq.redhat.com/devel/candidates/JBEAP/) DS_PROPS= "-Dds0.db=postgresql -Dds0.jdbc.driver.url=http: //www.qa.jboss.com/jdbc-drivers-products/EAP/7.1.0/postgresql94/jdbc4/postgresql-9.4.1209.jar -Dds0.jdbc.xa-class=org.postgresql.xa.PGXADataSource -Dds0.jdbc.url=jdbc:postgresql://gen-vm006.mw.lab.eng.bos.redhat.com:5432/crashrec -Dds0.db.name=crashrec -Dds0.user=crashrec -Dds0.pass=crashrec -Dds0.jdbc.driver.jar=postgresql-driver.jar " mvn clean verify -Djboss.dist=$JBOSS_HOME -am -pl jbossts -DfailIfNoTests= false -Dsurefire.forked.process.timeout=0 -Djbossts.noJTA -Dmaven.repo.local=path_to_eap-local-maven-repository -Deap -Dversion.eap=7.1.0.Beta1-redhat-3 -Dsurefire.rerunFailingTestsCount=0 -Dtest=JPAGracefulShutdownTestCase#serverShouldRefuseStartNewTx $DS_PROPS

    Description

      We have test which:

      • in one thread commands server to shutdown with 30s timeout and sleeps for 20s (in order to keep the server alive).
      • in another thread tries to call server (the server is in SUSPENDING phase) so this call should be refused and some exception should be thrown.

      It works fine for JTA. But for JTS another call is successfully processed by the the server and no exception is thrown:

      13:03:25,167 INFO  [ShellRunner] (p: default-threadpool; w: Idle) Executing shell command: '"bin/jboss-cli.sh" --controller=127.0.0.1:42042 -c --command=":shutdown(timeout=30000)"'
      13:03:26,842 INFO  [org.jboss.as.server] (management-handler-thread - 4) WFLYSRV0211: Suspending server with 30000000 ms timeout.
      13:03:26,844 INFO  [com.arjuna.ats.jbossatx] (management-handler-thread - 4) ARJUNA032034: Suspending transaction recovery manager
      13:03:26,845 INFO  [org.jboss.as.ejb3] (management-handler-thread - 4) WFLYEJB0492: EJB subsystem suspension waiting for active transactions, 0 transaction(s) remaining
      13:03:28,536 INFO  [org.jboss.as.test.jbossts.crashrec.test.JPAGracefulShutdownTestCase] (main) Another calling testXA method for 'serverShouldRefuseStartNewTx'
      13:03:28,576 INFO  [org.jboss.as.test.jbossts.crashrec.test.JPABaseCrashRecoveryTestCase] (main) Calling testXA method for 'serverShouldRefuseStartNewTx'
      13:03:28,583 INFO  [org.jboss.as.test.jbossts.crashrec.jpa.JPACrashBean] (p: default-threadpool; w: Idle) JPACrashBean.testXA called with testEntityPK=serverShouldRefuseStartNewTx
      

      Attachments

        Issue Links

          Activity

            People

              flaviarnn Flavia Rainone
              dsimko Daniel Simko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: