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

Fix random MongoDB test failure on ITSearchTabTest testResultColumnSimpleSearch

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9.1
    • Component/s: Core MongoDB, Tests

      Description

      In some MongoDB builds ITSearchTabTest.testResultColumnSimpleSearch fails:

      	at org.openqa.selenium.support.ui.FluentWait.timeoutException(FluentWait.java:292)
      	at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:261)
      	at org.nuxeo.functionaltests.AbstractTest.fillElement(AbstractTest.java:370)
      	at org.nuxeo.functionaltests.AbstractTest.asPage(AbstractTest.java:328)
      	at org.nuxeo.functionaltests.pages.AbstractPage.asPage(AbstractPage.java:72)
      	at org.nuxeo.functionaltests.pages.search.AbstractSearchSubPage.filter(AbstractSearchSubPage.java:47)
      	at org.nuxeo.ftest.cap.ITSearchTabTest.testResultColumnSimpleSearch(ITSearchTabTest.java:254)
      

      The test end screenshot shows an error page, and the server.log contains:

      2016-11-22 12:52:45,639 WARN  [http-bio-0.0.0.0-8080-exec-19] [org.nuxeo.ecm.platform.ui.web.restAPI.SystemLogRestlet] ----- WebDriver: Starting test 'org.nuxeo.ftest.cap.ITSearchTabTest#testResultColumnSimpleSearch'
      2016-11-22 12:53:02,737 WARN  [http-bio-0.0.0.0-8080-exec-17] [org.nuxeo.ecm.core.blob.binary.LocalBinaryManager] cannot fetch content at /opt/jenkins/workspace/Deploy/IT-nuxeo-master-tests-cap-tomcat-mongodb/tomcat-webdriver/nxserver/data/binaries/data/43/42/43425893fbec77e60688a8b7c963482b (file does not exist), check your configuration
      2016-11-22 12:53:02,767 ERROR [http-bio-0.0.0.0-8080-exec-17] [org.nuxeo.ecm.platform.web.common.exceptionhandling.DefaultNuxeoExceptionHandler] javax.servlet.ServletException: Cannot get blob info for: 43425893fbec77e60688a8b7c963482b	
      Caused by: org.nuxeo.ecm.core.api.PropertyException: Cannot get blob info for: 43425893fbec77e60688a8b7c963482b
      	at org.nuxeo.ecm.core.storage.BaseDocument.getValueBlob(BaseDocument.java:461)
      	at org.nuxeo.ecm.core.storage.BaseDocument.readComplexProperty(BaseDocument.java:645)
      	at org.nuxeo.ecm.core.storage.BaseDocument.readComplexProperty(BaseDocument.java:660)
      	at org.nuxeo.ecm.core.storage.dbs.DBSDocument.readDocumentPart(DBSDocument.java:839)
      	at org.nuxeo.ecm.core.api.DocumentModelFactory.createDataModel(DocumentModelFactory.java:208)
      	at org.nuxeo.ecm.core.api.AbstractSession.getDataModel(AbstractSession.java:1966)
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl$1.run(DocumentModelImpl.java:492)
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl$1.run(DocumentModelImpl.java:489)
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl$RunWithCoreSession.execute(DocumentModelImpl.java:403)
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.loadDataModel(DocumentModelImpl.java:494)
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getDataModel(DocumentModelImpl.java:503)
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getPart(DocumentModelImpl.java:1340)
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getProperty(DocumentModelImpl.java:1387)
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getPropertyValue(DocumentModelImpl.java:1446)
      	at org.nuxeo.ecm.core.api.blobholder.DocumentBlobHolder.getBlob(DocumentBlobHolder.java:68)
      	at sun.reflect.GeneratedMethodAccessor712.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at javax.el.BeanELResolver.getValue(BeanELResolver.java:99)
      Caused by: java.io.IOException: Unknown binary: 43425893fbec77e60688a8b7c963482b
      	at org.nuxeo.ecm.core.blob.binary.BinaryBlobProvider.readBlob(BinaryBlobProvider.java:92)
      	at org.nuxeo.ecm.core.blob.BlobManagerComponent.readBlob(BlobManagerComponent.java:234)
      	at org.nuxeo.ecm.core.storage.BaseDocument.getValueBlob(BaseDocument.java:459)
      	... 163 more
      

      But actually there are many instances of failed binary fetches in WARN in async jobs as well.

      43425893fbec77e60688a8b7c963482b is the same between different builds, but we haven't yet identified where this id comes from.

      We don't know if this is really tied to MongoDB either.

      https://qa.nuxeo.org/jenkins/job/Deploy/job/IT-nuxeo-master-tests-cap-tomcat-mongodb/162/testReport/org.nuxeo.ftest.cap/ITSearchTabTest/testResultColumnSimpleSearch/

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: