-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2021.23
-
Component/s: Elasticsearch
-
Tags:
-
Team:PLATFORM
-
Sprint:nxplatform #65
-
Story Points:2
Since June the 5th we observe this kind of error in the TestESRestClient test in the CI:
[2022-07-06T12:52:07.027Z] [ERROR] org.nuxeo.elasticsearch.test.TestESRestClient Time elapsed: 0.001 s <<< ERROR! [2022-07-06T12:52:07.027Z] java.nio.file.NoSuchFileException: /home/jenkins/workspace/nuxeo_lts_nuxeo_2021/modules/platform/nuxeo-elasticsearch/nuxeo-elasticsearch-core/target-dev/nxruntime-main-18190281722715779449.tmp/tmp/junit18293768509171681140 [2022-07-06T12:52:07.027Z] at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92) [2022-07-06T12:52:07.027Z] at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) [2022-07-06T12:52:07.027Z] at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116) [2022-07-06T12:52:07.027Z] at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:389) [2022-07-06T12:52:07.027Z] at java.base/java.nio.file.Files.createDirectory(Files.java:690) [2022-07-06T12:52:07.027Z] at java.base/java.nio.file.TempFileHelper.create(TempFileHelper.java:135) [2022-07-06T12:52:07.027Z] at java.base/java.nio.file.TempFileHelper.createTempDirectory(TempFileHelper.java:172) [2022-07-06T12:52:07.027Z] at java.base/java.nio.file.Files.createTempDirectory(Files.java:1007) [2022-07-06T12:52:07.027Z] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [2022-07-06T12:52:07.027Z] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [2022-07-06T12:52:07.027Z] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [2022-07-06T12:52:07.027Z] at java.base/java.lang.reflect.Method.invoke(Method.java:566) [2022-07-06T12:52:07.027Z] at org.junit.rules.TemporaryFolder.createTemporaryFolderWithNioApi(TemporaryFolder.java:268) [2022-07-06T12:52:07.028Z] at org.junit.rules.TemporaryFolder.createTemporaryFolderIn(TemporaryFolder.java:237) [2022-07-06T12:52:07.028Z] at org.junit.rules.TemporaryFolder.create(TemporaryFolder.java:150) [2022-07-06T12:52:07.028Z] at org.junit.rules.TemporaryFolder.before(TemporaryFolder.java:136) [2022-07-06T12:52:07.028Z] at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:50) [2022-07-06T12:52:07.028Z] at org.junit.rules.RunRules.evaluate(RunRules.java:20) [2022-07-06T12:52:07.028Z] at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) [2022-07-06T12:52:07.028Z] at org.junit.runners.ParentRunner.run(ParentRunner.java:413) [2022-07-06T12:52:07.028Z] at org.junit.runners.Suite.runChild(Suite.java:128) [2022-07-06T12:52:07.028Z] at org.junit.runners.Suite.runChild(Suite.java:27) [2022-07-06T12:52:07.028Z] at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) [2022-07-06T12:52:07.028Z] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) [2022-07-06T12:52:07.028Z] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) [2022-07-06T12:52:07.028Z] at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) [2022-07-06T12:52:07.028Z] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) [2022-07-06T12:52:07.028Z] at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) [2022-07-06T12:52:07.028Z] at org.junit.runners.ParentRunner.run(ParentRunner.java:413) [2022-07-06T12:52:07.028Z] at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) [2022-07-06T12:52:07.028Z] at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) [2022-07-06T12:52:07.028Z] at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) [2022-07-06T12:52:07.028Z] at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) [2022-07-06T12:52:07.028Z] at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) [2022-07-06T12:52:07.028Z] at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) [2022-07-06T12:52:07.028Z] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) [2022-07-06T12:52:07.028Z] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) [2022-07-06T12:52:07.028Z] at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) [2022-07-06T12:52:07.028Z] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
The nxruntime directory doesn't exist, which can be expected as this test class doesn't use FeaturesRunner, it is a classic JUnit test class.
The issue appears now because the test execution order has changed.