Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-29675

Fix Random PG TestSQLRepositoryAPI.testGetChildrenIteratorFilter

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2021.19
    • Component/s: Tests

      Description

      PG transaction timeout:

      Regression
      
      Run unit tests / Run postgresql unit tests / org.nuxeo.ecm.core.TestSQLRepositoryAPI.testGetChildrenIteratorFilter
      Failing for the past 1 build (Since Failed#646 )
      Took 16 min.
      add description
      Error Message
      
      Transaction has timed out
      
      Stacktrace
      
      org.nuxeo.runtime.transaction.TransactionRuntimeException: Transaction has timed out
      	at org.nuxeo.runtime.transaction.TransactionHelper.checkTransactionTimeout(TransactionHelper.java:230)
      	at org.nuxeo.ecm.core.api.local.LocalSession.getSession(LocalSession.java:92)
      	at org.nuxeo.ecm.core.api.AbstractSession.resolveReference(AbstractSession.java:354)
      	at org.nuxeo.ecm.core.api.AbstractSession.getDataModel(AbstractSession.java:2093)
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.loadDataModel(DocumentModelImpl.java:467)
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getDataModel(DocumentModelImpl.java:477)
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getPart(DocumentModelImpl.java:1240)
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getProperty(DocumentModelImpl.java:1288)
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getPropertyValue(DocumentModelImpl.java:1352)
      	at org.nuxeo.ecm.core.versioning.StandardVersioningService.getVersion(StandardVersioningService.java:149)
      	at org.nuxeo.ecm.core.versioning.StandardVersioningService.getMajor(StandardVersioningService.java:141)
      	at org.nuxeo.ecm.core.versioning.StandardVersioningService.getVersionLabel(StandardVersioningService.java:130)
      	at org.nuxeo.ecm.core.versioning.VersioningComponent.getVersionLabel(VersioningComponent.java:403)
      	at org.nuxeo.ecm.core.api.AbstractSession.notifyCheckedInVersion(AbstractSession.java:1906)
      	at org.nuxeo.ecm.core.api.AbstractSession.checkIn(AbstractSession.java:1890)
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.checkIn(DocumentModelImpl.java:672)
      	at org.nuxeo.ecm.core.versioning.StandardVersioningService.doAutomaticVersioning(StandardVersioningService.java:507)
      	at org.nuxeo.ecm.core.versioning.VersioningComponent.doAutomaticVersioning(VersioningComponent.java:451)
      	at org.nuxeo.ecm.core.api.AbstractSession.createDocument(AbstractSession.java:769)
      	at org.nuxeo.ecm.core.TestSQLRepositoryAPI.testGetChildrenIteratorFilter(TestSQLRepositoryAPI.java:894)
      ...
      	Suppressed: java.lang.AssertionError: Error while invoking afterTeardown on features: [org.nuxeo.ecm.core.test.CoreFeature, org.nuxeo.ecm.core.bulk.CoreBulkFeature, org.nuxeo.ecm.core.work.WorkManagerFeature, org.nuxeo.ecm.core.api.local.DummyLoginFeature, org.nuxeo.runtime.stream.RuntimeStreamFeature, org.nuxeo.runtime.test.runner.TransactionalFeature, org.nuxeo.runtime.cluster.ClusterFeature, org.nuxeo.runtime.test.runner.RuntimeFeature, org.nuxeo.runtime.test.runner.WithFrameworkPropertyFeature, org.nuxeo.runtime.test.runner.RandomBug$Feature, org.nuxeo.runtime.test.runner.ConditionalIgnoreRule$Feature, org.nuxeo.runtime.test.runner.MDCFeature]
      		at org.nuxeo.runtime.test.runner.FeaturesRunner.apply(FeaturesRunner.java:253)
      		at org.nuxeo.runtime.test.runner.FeaturesRunner.apply(FeaturesRunner.java:225)
      		at org.nuxeo.runtime.test.runner.FeaturesRunner.afterTeardown(FeaturesRunner.java:218)
      		at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterTeardownStatement.lambda$evaluate$0(FeaturesRunner.java:445)
      		at org.nuxeo.runtime.test.runner.FeaturesRunner.evaluateRunnable(FeaturesRunner.java:277)
      		... 38 more
      		Suppressed: org.nuxeo.runtime.transaction.TransactionRuntimeException: Unable to commit: Transaction timeout
      			at org.nuxeo.runtime.transaction.TransactionHelper.commitOrRollbackTransaction(TransactionHelper.java:403)
      			at org.nuxeo.runtime.test.runner.TransactionalFeature.nextTransaction(TransactionalFeature.java:95)
      			at org.nuxeo.runtime.test.runner.TransactionalFeature.nextTransaction(TransactionalFeature.java:78)
      			at org.nuxeo.ecm.core.test.CoreFeature.waitForAsyncCompletion(CoreFeature.java:231)
      			at org.nuxeo.ecm.core.test.CoreFeature.afterTeardown(CoreFeature.java:224)
      			at org.nuxeo.runtime.test.runner.FeaturesRunner.lambda$afterTeardown$8(FeaturesRunner.java:218)
      			at org.nuxeo.runtime.test.runner.FeaturesRunner.apply(FeaturesRunner.java:239)
      			... 42 more
      		Caused by: javax.transaction.RollbackException: Unable to commit: Transaction timeout
      			at org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:267)
      			at org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:252)
      			at org.nuxeo.runtime.jtajca.NuxeoContainer$UserTransactionImpl.commit(NuxeoContainer.java:576)
      			at org.nuxeo.runtime.transaction.TransactionHelper.commitOrRollbackTransaction(TransactionHelper.java:386)
      			... 48 more
      

      Seen
      https://jenkins.platform.dev.nuxeo.com/job/nuxeo/job/nuxeo/job/master/646/testReport/junit/org.nuxeo.ecm.core/TestSQLRepositoryAPI/Run_unit_tests___Run_postgresql_unit_tests___testGetChildrenIteratorFilter/

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.