[ https://issues.apache.org/jira/browse/GEODE-10184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17520783#comment-17520783 ]
Patrick Johnsn commented on GEODE-10184: ---------------------------------------- The problem is caused by the way Windows handles concurrent file access. We check that the status file exists, and then if it does, try to read it. This will sometimes fail on Windows if the file is being accessed by another process. The solution is to check not only if the file exists, but also if it can be opened before trying to read from it. Once opened, it must remain open until we are done with it, to avoid a race condition where another process could get ahold of it between the check and the read. > CI failure on windows: non-zero exit status on gfsh command in > DeployWithLargeJarTest > deployLargeSetOfJars > ------------------------------------------------------------------------------------------------------------ > > Key: GEODE-10184 > URL: https://issues.apache.org/jira/browse/GEODE-10184 > Project: Geode > Issue Type: Bug > Components: gfsh > Affects Versions: 1.15.0 > Reporter: Bill Burcham > Assignee: Patrick Johnsn > Priority: Major > Labels: needsTriage > > Deploy large jar test fails due to non-zero exit status on gfsh command on > windows > > [https://hydradb.hdb.gemfire-ci.info/hdb/testresult/14291025] > > {noformat} > > Task :geode-assembly:acceptanceTest > DeployWithLargeJarTest > deployLargeSetOfJars FAILED > org.opentest4j.AssertionFailedError: [Exit value from process started by > [e66e7d3e01750dd9: gfsh -e start locator --name=locator --max-heap=128m -e > start server --name=server --max-heap=128m --server-port=0 -e sleep --time=1 > -e deploy > --jars=C:\\Users\\geode\\geode\\geode-assembly\\build\\install\\apache-geode\\lib\\commons-beanutils-1.9.4.jar,C:\\Users\\geode\\geode\\geode-assembly\\build\\install\\apache-geode\\lib\\commons-codec-1.15.jar,C:\\Users\\geode\\geode\\geode-assembly\\build\\install\\apache-geode\\lib\\commons-collections-3.2.2.jar,C:\\Users\\geode\\geode\\geode-assembly\\build\\install\\apache-geode\\lib\\commons-digester-2.1.jar,C:\\Users\\geode\\geode\\geode-assembly\\build\\install\\apache-geode\\lib\\commons-io-2.11.0.jar,C:\\Users\\geode\\geode\\geode-assembly\\build\\install\\apache-geode\\lib\\commons-lang3-3.12.0.jar,C:\\Users\\geode\\geode\\geode-assembly\\build\\install\\apache-geode\\lib\\commons-logging-1.2.jar,C:\\Users\\geode\\geode\\geode-assembly\\build\\install\\apache-geode\\lib\\commons-modeler-2.0.1.jar,C:\\Users\\geode\\geode\\geode-assembly\\build\\install\\apache-geode\\lib\\commons-validator-1.7.jar]] > > expected: 0 > but was: 1 > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at > org.apache.geode.test.junit.rules.gfsh.GfshExecution.awaitTermination(GfshExecution.java:103) > at > org.apache.geode.test.junit.rules.gfsh.GfshRule.execute(GfshRule.java:154) > at > org.apache.geode.test.junit.rules.gfsh.GfshRule.execute(GfshRule.java:163) > at > org.apache.geode.test.junit.rules.gfsh.GfshScript.execute(GfshScript.java:153) > at > org.apache.geode.management.internal.cli.commands.DeployWithLargeJarTest.deployLargeSetOfJars(DeployWithLargeJarTest.java:41) > 176 tests completed, 1 failed, 18 skipped > =-=-=-=-=-=-=-=-=-=-=-=-=-=-= Test Results URI > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > http://files.apachegeode-ci.info/builds/apache-develop-main/1.15.0-build.1035/test-results/acceptanceTest/1648482211/ > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > Test report artifacts from this job are available at: > http://files.apachegeode-ci.info/builds/apache-develop-main/1.15.0-build.1035/test-artifacts/1648482211/windows-acceptancetestfiles-openjdk8-1.15.0-build.1035.tgz{noformat} -- This message was sent by Atlassian Jira (v8.20.1#820001)