Mark Liu created BEAM-2323:
------------------------------

             Summary: Apex Unittest ApexYarnLauncherTest Failed on Jenkins If 
Directory Contains Space
                 Key: BEAM-2323
                 URL: https://issues.apache.org/jira/browse/BEAM-2323
             Project: Beam
          Issue Type: Bug
          Components: runner-apex
            Reporter: Mark Liu
            Assignee: Thomas Weise


I'm using Jenkins to run postcommit test on different JDK versions. The 
directory that is used for project root contains space, like 
"/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Java_JDK_Versions_Test/jdk/JDK
 1.8 (latest)/..." and cause ApexYarnLauncherTest failed. 

Error log:
{code}
java.lang.AssertionError: 
Expected: a string containing "apex-common-"
     but: was "[/usr/local/asfpackages/java/jdk1.8.0_121/lib/tools.jar]"
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
        at org.junit.Assert.assertThat(Assert.java:956)
        at org.junit.Assert.assertThat(Assert.java:923)
        at 
org.apache.beam.runners.apex.ApexYarnLauncherTest.testGetYarnDeployDependencies(ApexYarnLauncherTest.java:60)
{code}

Jenkins link:
https://builds.apache.org/job/beam_PostCommit_Java_JDK_Versions_Test/12/jdk=JDK%201.8%20(latest),label=beam/

It's probably more relative to Jenkins since running the test in my local 
machine under space-contained-directory is successful. 

+[~jasonkuster]



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to