Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-1001

Prevent failures in tearDownServer()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.5.4
    • Fix Version/s: 2.5.5
    • Component/s: Tests

      Description

      For instance: https://qa.nuxeo.org/jenkins/view/Drive/job/Drive/job/FT-drive/job/master/297/

      Interesting trace:

      Caused by: org.nuxeo.ecm.automation.OperationException: Failed to invoke operation NuxeoDrive.TearDownIntegrationTests
      	at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:188)
      	at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$OperationMethod.invoke(OperationChainCompiler.java:128)
      	at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.invoke(OperationChainCompiler.java:196)
      	at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:119)
      	at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:107)
      	at org.nuxeo.ecm.automation.server.jaxrs.OperationResource.execute(OperationResource.java:58)
      	at org.nuxeo.ecm.automation.server.jaxrs.ExecutableResource.doPost(ExecutableResource.java:71)
      	... 98 more
      Caused by: org.nuxeo.ecm.core.api.NuxeoException: Cannot use closed connection handle: org.nuxeo.ecm.core.storage.sql.ra.ConnectionImpl@6908959f
      	at org.nuxeo.ecm.core.storage.sql.ra.ConnectionImpl.getSession(ConnectionImpl.java:146)
      	at org.nuxeo.ecm.core.storage.sql.ra.ConnectionImpl.getModel(ConnectionImpl.java:168)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.idToString(SQLSession.java:155)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentLive.getUUID(SQLDocumentLive.java:134)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentLive.getVersionSeriesId(SQLDocumentLive.java:442)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentLive.getVersionsIds(SQLDocumentLive.java:518)
      	at org.nuxeo.ecm.core.versioning.DefaultVersionRemovalPolicy.removeVersions(DefaultVersionRemovalPolicy.java:77)
      	at org.nuxeo.ecm.core.api.AbstractSession.removeNotifyOneDoc(AbstractSession.java:1422)
      	at org.nuxeo.ecm.core.api.AbstractSession.removeDocument(AbstractSession.java:1399)
      	at org.nuxeo.ecm.core.api.AbstractSession.removeDocument(AbstractSession.java:1389)
      	at org.nuxeo.drive.operations.test.NuxeoDriveIntegrationTestsHelper.cleanUp(NuxeoDriveIntegrationTestsHelper.java:88)
      	at org.nuxeo.drive.operations.test.NuxeoDriveTearDownIntegrationTests.run(NuxeoDriveTearDownIntegrationTests.java:47)
      	at sun.reflect.GeneratedMethodAccessor234.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:164)
      	at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:176)
      

      A solution is to ask for the Administrator workspace in tests setup to prevent the crash in the clean-up step.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 15 minutes
                4h 15m