[ 
https://issues.apache.org/jira/browse/BEAM-2157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15995934#comment-15995934
 ] 

ASF GitHub Bot commented on BEAM-2157:
--------------------------------------

GitHub user markflyhigh opened a pull request:

    https://github.com/apache/beam/pull/2876

    [BEAM-2157] Fix HDFS Test That Failed in Other JDK Versions

    Be sure to do all of the following to help us incorporate your contribution
    quickly and easily:
    
     - [x] Make sure the PR title is formatted like:
       `[BEAM-<Jira issue #>] Description of pull request`
     - [ ] Make sure tests pass via `mvn clean verify`.
     - [ ] Replace `<Jira issue #>` in the title with the actual Jira issue
           number, if there is one.
     - [ ] If this contribution is large, please file an Apache
           [Individual Contributor License 
Agreement](https://www.apache.org/licenses/icla.pdf).
    
    ---
    
    Quick fix HadoopFileSystemModuleTest that's failed in JDK 1.7, OpenJDK 7 
and OpenJDK 8.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/markflyhigh/incubator-beam fix-hdfs-test

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/beam/pull/2876.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2876
    
----
commit a2364e807e13da5a49027109d78f413c2b96143b
Author: Mark Liu <mark...@google.com>
Date:   2017-05-04T00:08:38Z

    [BEAM-2157] Fix HDFS Test That Failed in Other JDK Versions

----


> HadoopFileSystemModuleTest Failed in Some JDK Versions on Jenkins
> -----------------------------------------------------------------
>
>                 Key: BEAM-2157
>                 URL: https://issues.apache.org/jira/browse/BEAM-2157
>             Project: Beam
>          Issue Type: Bug
>          Components: testing
>            Reporter: Mark Liu
>
> I'm running Java Postcommit test in multiple JDK versions and 
> HadoopFileSystemModuleTest failed in the following JDK versions:
> JDK 1.7
> OpenJDK 7 (on Ubuntu only)
> OpenJDK 8 (on Ubuntu only)
> Error log:
> {code}
> estConfigurationSerializationDeserialization(org.apache.beam.sdk.io.hdfs.HadoopFileSystemModuleTest)
>   Time elapsed: 0.022 s  <<< FAILURE!
> java.lang.AssertionError: 
> Expected: iterable containing [<testPropertyA=A>, <testPropertyB=B>, 
> <testPropertyC=baseC>]
>      but: item 0: was <testPropertyC=baseC>
>       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.sdk.io.hdfs.HadoopFileSystemModuleTest.testConfigurationSerializationDeserialization(HadoopFileSystemModuleTest.java:60)
> {code}
> Jenkins build link is 
> [here|https://builds.apache.org/view/Beam/job/beam_PostCommit_Java_JDK_Versions_Test/6/]
> However, this test was passed in JDK 1.8 which is the one we are currently 
> used in all pre/post-commit.
> Note: This Jenkins branch is still not published, but environment should be 
> set up correctly. Build (total 4 JDK versions) can be triggered by commenting 
> "Run Java JDK Versions Test" in PR.



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

Reply via email to