Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-125537

DataGuard failed session factory verification on archived-modules-test

    Details

      Description

      Description
      Dataguard is having cleanup issues when running all of the archived modules integration tests at the same time

      Steps to Reproduce

      1. Add this ant target to build-test.xml https://gist.github.com/vicnate5/85645745370844fdcd223a4d00bb181e
      2. in your main portal repo, run ant -f build-test.xml custom

      Expected Result
      All integration tests pass with no errors

      Actual Result
      Errors thrown in console & multiple integrtaion tests fail

      com.liferay.portlet.social.model.impl.SocialActivityLimitImpl=SingleTableEntityPersister(com.liferay.portlet.social.model.impl.SocialActivityLimitImpl)}, target session factory classes metadata: {com.liferay.powwow.model.impl.PowwowServerImpl=SingleTableEntityPersister(com.liferay.powwow.model.impl.PowwowServerImpl), com.liferay.powwow.model.impl.PowwowMeetingImpl=SingleTableEntityPersister(com.liferay.powwow.model.impl.PowwowMeetingImpl), com.liferay.powwow.model.impl.PowwowParticipantImpl=SingleTableEntityPersister(com.liferay.powwow.model.impl.PowwowParticipantImpl)}
          [junit] 	at com.liferay.portal.dao.orm.hibernate.VerifySessionFactoryWrapper._logFailure(VerifySessionFactoryWrapper.java:123)
          [junit] 	at com.liferay.portal.dao.orm.hibernate.VerifySessionFactoryWrapper._verify(VerifySessionFactoryWrapper.java:160)
          [junit] 	at com.liferay.portal.dao.orm.hibernate.VerifySessionFactoryWrapper.openSession(VerifySessionFactoryWrapper.java:98)
          [junit] 	at com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl.openSession(BasePersistenceImpl.java:433)
          [junit] 	at com.liferay.powwow.service.persistence.impl.PowwowParticipantPersistenceImpl.findAll(PowwowParticipantPersistenceImpl.java:2301)
          [junit] 	at com.liferay.powwow.service.persistence.impl.PowwowParticipantPersistenceImpl.findAll(PowwowParticipantPersistenceImpl.java:2232)
          [junit] 	at com.liferay.powwow.service.persistence.impl.PowwowParticipantPersistenceImpl.findAll(PowwowParticipantPersistenceImpl.java:2196)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          [junit] 	at java.lang.reflect.Method.invoke(Method.java:498)
          [junit] 	at com.liferay.portal.kernel.test.ReflectionTestUtil.invoke(ReflectionTestUtil.java:221)
          [junit] 	at com.liferay.portal.kernel.test.rule.DataGuardTestRule.lambda$_captureDataMap$0(DataGuardTestRule.java:219)
          [junit] 	at com.liferay.portal.spring.transaction.BaseTransactionExecutor.execute(BaseTransactionExecutor.java:37)
          [junit] 	at com.liferay.portal.spring.transaction.TransactionInvokerImpl.invoke(TransactionInvokerImpl.java:39)
          [junit] 	at com.liferay.portal.kernel.transaction.TransactionInvokerUtil.invoke(TransactionInvokerUtil.java:28)
          [junit] 	at com.liferay.portal.kernel.test.rule.DataGuardTestRule._captureDataMap(DataGuardTestRule.java:213)
          [junit] 	at com.liferay.portal.kernel.test.rule.DataGuardTestRule._autoDeleteLeftovers(DataGuardTestRule.java:388)
          [junit] 	at com.liferay.portal.kernel.test.rule.DataGuardTestRule.afterClass(DataGuardTestRule.java:97)
          [junit] 	at com.liferay.portal.kernel.test.rule.DataGuardTestRule.afterClass(DataGuardTestRule.java:67)
          [junit] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:66)
          [junit] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
          [junit] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
          [junit] 	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
          [junit] 	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:181)
          [junit] 	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
          [junit] 	at java.lang.Thread.run(Thread.java:745)
          [junit] 13:30:15,422 ERROR [com.liferay.chat.test-executor-thread][VerifySessionFactoryWrapper:121] Failed session factory verification
          [junit] java.lang.IllegalStateException: Wrong current transaction manager, current session factory classes metadata: 
      

      Tested on Tomcat 9.0.37 + PostgreSQL 10.6
      Portal master GIT ID: 1009de67c76e6aea7012e91270fbeb3da51087ed

        Attachments

          Activity

            People

            Assignee:
            shuyang.zhou Shuyang Zhou
            Reporter:
            kyle.miho Kyle Miho
            Participants of an Issue:
            Recent user:
            Brian Wulbern
            Engineering Assignee:
            Matthew Tambara
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              6 weeks, 6 days ago

                Packages

                Version Package
                7.3.X
                Master