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

Fix tests timing out waiting for asynchronous indexing

    XMLWordPrintable

    Details

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

      Description

      Some test on slow databases are timing out waiting for async work to finish. For instance waiting for Nuxeo-Work-fulltextUpdater-1 on Oracle.

      —> increate timeout to wait for async work in tests.

      org.nuxeo.apidoc.test.TestSnapshotWithDocPersist.testPersistWithLiveDoc

      main 08:52:34,463 ERROR [CoreFeature$WorksWaiter] Timed out while waiting for works 
      [default, 0, 0, 682, 0],works=
      [updateACEStatus, 0, 0, 1, 0],works=
      [fulltextUpdater, 69, 1, 1806, 0],works=4582796073275612.827753020,4582795973737293.1711652178,4582796565115925.951925723,4582795425768796.1395298050,4582796529987771.1319557411,4582796489258996.1226900162,4582796346053975.1770356281,4582796880124216.658329057,4582795671330571.1515238122,4582796509534862.2135063141,4582796256350664.1724698339,4582797074789524.412071848,4582795400370744.571043316,4582796952823726.565461787,4582796410709238.1676943586,4582795305861324.484369649,4582795352147549.1858875554,4582796011495502.1501231896,4582796464829407.1378267350,4582795494559303.1720969492,4582796601674606.784666838,4582796700779234.356813677,4582797100999588.1386175263,4582797118380914.412472056,4582795448559355.1460387649,4582796314352878.981859070,4582796742410872.1585725390,4582795765538095.2100953565,4582795378956747.766641440,4582795589731903.2145330279,4582796231383188.1817298081,4582796382324717.1874689067,4582795535891229.1900807056,4582796626793184.8771575,4582796991866639.1802454419,4582795605835296.1917609214,4582796781443296.208276919,4582796844327488.1891265994,4582796647193391.1130472978,4582796431924616.1297037404,4582797153619936.416505738,4582795813937707.164450352,4582795362373496.1185647729,4582796968378137.927848984,4582795334874173.212842160,4582796729400797.288312027,4582796806608982.139807269,4582796552447277.1496621376,4582795723585868.1516265052,4582795920985249.1830318557,4582796829515412.290811071,4582796287413239.567376238,4582795229187240.472530876,4582795564979003.1864933332,4582796671753588.1178457811,4582796755581148.145124871,4582795657389180.1203824725,4582795836317123.267046539,4582797019548509.329427728,4582795627276560.1832486558,4582796176443696.1781280867,4582795522021771.1958998316,4582795470484601.1702253026,4582795883173892.1887476107,4582796104205105.200007558,4582796302165641.396707955,4582795791552823.875996992,4582795687418465.1720588419,4582796041249625.485226129,4582795276542210.747957164
      [elasticSearchIndexing, 0, 0, 484, 0],works=
      [apidoc-xml-extractor, 0, 0, 260, 0],works=
      java.lang.Throwable: stack trace
      	at org.nuxeo.ecm.core.test.CoreFeature$WorksWaiter.logInfos(CoreFeature.java:126)
      	at org.nuxeo.ecm.core.test.CoreFeature$WorksWaiter.await(CoreFeature.java:104)
      	at org.nuxeo.ecm.core.test.TransactionalFeature.await(TransactionalFeature.java:97)
      	at org.nuxeo.ecm.core.test.TransactionalFeature.nextTransaction(TransactionalFeature.java:79)
      	at org.nuxeo.ecm.core.test.TransactionalFeature.nextTransaction(TransactionalFeature.java:64)
      	at org.nuxeo.ecm.core.test.CoreFeature.waitForAsyncCompletion(CoreFeature.java:263)
      	at org.nuxeo.ecm.core.test.CoreFeature.cleanupSession(CoreFeature.java:267)
      	at org.nuxeo.ecm.core.test.CoreFeature.afterTeardown(CoreFeature.java:256)
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: