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

Fix random in TestCSVExportAction.testDownloadCSVWithElasticScroller on Postgres

    XMLWordPrintable

    Details

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

      Description

      
      [2022-04-07T18:42:49.992Z] [ERROR] testDownloadCSVWithElasticScroller(org.nuxeo.ecm.platform.csv.export.TestCSVExportAction)  Time elapsed: 635.092 s  <<< FAILURE!
      
      [2022-04-07T18:42:49.992Z] java.lang.AssertionError: Error while invoking beforeSetup on features: [org.nuxeo.runtime.test.runner.MDCFeature, org.nuxeo.runtime.test.runner.ConditionalIgnoreRule$Feature, org.nuxeo.runtime.test.runner.RandomBug$Feature, org.nuxeo.runtime.test.runner.WithFrameworkPropertyFeature, org.nuxeo.runtime.test.runner.RuntimeFeature, org.nuxeo.runtime.cluster.ClusterFeature, org.nuxeo.runtime.test.runner.TransactionalFeature, org.nuxeo.runtime.stream.RuntimeStreamFeature, org.nuxeo.ecm.core.bulk.CoreBulkFeature, org.nuxeo.ecm.core.api.local.DummyLoginFeature, org.nuxeo.ecm.core.event.CoreEventFeature, org.nuxeo.ecm.core.work.WorkManagerFeature, org.nuxeo.ecm.core.test.CoreFeature, org.nuxeo.directory.test.DirectoryFeature, org.nuxeo.elasticsearch.test.RepositoryLightElasticSearchFeature]
      [2022-04-07T18:42:49.992Z] 	at org.nuxeo.runtime.test.runner.FeaturesRunner.apply(FeaturesRunner.java:314)
      [2022-04-07T18:42:49.992Z] 	at org.nuxeo.runtime.test.runner.FeaturesRunner.apply(FeaturesRunner.java:286)
      [2022-04-07T18:42:49.992Z] 	at org.nuxeo.runtime.test.runner.FeaturesRunner.beforeSetup(FeaturesRunner.java:274)
      [2022-04-07T18:42:49.992Z] 	at org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeSetupStatement.evaluate(FeaturesRunner.java:470)
      ...
      [2022-04-07T18:42:49.992Z] 	Suppressed: org.nuxeo.runtime.transaction.TransactionRuntimeException: Unable to commit: Transaction timeout
      [2022-04-07T18:42:49.992Z] 		at org.nuxeo.runtime.transaction.TransactionHelper.commitOrRollbackTransaction(TransactionHelper.java:443)
      [2022-04-07T18:42:49.992Z] 		at org.nuxeo.runtime.test.runner.TransactionalFeature.nextTransaction(TransactionalFeature.java:95)
      [2022-04-07T18:42:49.992Z] 		at org.nuxeo.runtime.test.runner.TransactionalFeature.nextTransaction(TransactionalFeature.java:78)
      [2022-04-07T18:42:49.992Z] 		at org.nuxeo.ecm.core.test.CoreFeature.waitForAsyncCompletion(CoreFeature.java:231)
      [2022-04-07T18:42:49.992Z] 		at org.nuxeo.ecm.core.test.CoreFeature.lambda$initializeSession$2(CoreFeature.java:331)
      [2022-04-07T18:42:49.992Z] 		at org.nuxeo.runtime.api.Framework.lambda$doPrivileged$0(Framework.java:260)
      [2022-04-07T18:42:49.992Z] 		at org.nuxeo.runtime.api.Framework.loginAndDo(Framework.java:307)
      [2022-04-07T18:42:49.992Z] 		at org.nuxeo.runtime.api.Framework.doPrivileged(Framework.java:259)
      [2022-04-07T18:42:49.992Z] 		at org.nuxeo.ecm.core.test.CoreFeature.initializeSession(CoreFeature.java:326)
      [2022-04-07T18:42:49.992Z] 		at org.nuxeo.ecm.core.test.CoreFeature.beforeSetup(CoreFeature.java:218)
      [2022-04-07T18:42:49.992Z] 		at org.nuxeo.runtime.test.runner.FeaturesRunner.lambda$beforeSetup$8(FeaturesRunner.java:274)
      [2022-04-07T18:42:49.992Z] 		at org.nuxeo.runtime.test.runner.FeaturesRunner.apply(FeaturesRunner.java:300)
      [2022-04-07T18:42:49.992Z] 		... 44 more
      [2022-04-07T18:42:49.992Z] 	Caused by: javax.transaction.RollbackException: Unable to commit: transaction marked for rollback
      [2022-04-07T18:42:49.992Z] 		at org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:294)
      [2022-04-07T18:42:49.992Z] 		at org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:252)
      [2022-04-07T18:42:49.992Z] 		at org.nuxeo.runtime.jtajca.NuxeoContainer$UserTransactionImpl.commit(NuxeoContainer.java:418)
      [2022-04-07T18:42:49.992Z] 		at org.nuxeo.runtime.transaction.TransactionHelper.commitOrRollbackTransaction(TransactionHelper.java:428)
      [2022-04-07T18:42:49.992Z] 		... 55 more
      [2022-04-07T18:42:49.992Z] 	Caused by: java.lang.Exception: Transaction has timed out, started: 1649356235475 timeout: 600000ms
      [2022-04-07T18:42:49.992Z] 		at org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:287)
      [2022-04-07T18:42:49.992Z] 		... 58 more
      
      

      This means that repository initialization DocumentSetRepositoryInit took more than 12 min before the commit throw a timeout exception.

      Either the documents should be created in multiple transactions,
      either CI Postgres database should be tuned, creating 200 docs should not take 12min (See SUPINT-2101).

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: