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

ASF GitHub Bot commented on FLINK-6836:
---------------------------------------

GitHub user tillrohrmann opened a pull request:

    https://github.com/apache/flink/pull/4120

    [FLINK-6836] [tests] Fix YARNSessionCapacitySchedulerITCase to work with 
Hadoop 2.6.5, 2.7.3 and 2.8.0

    Due to MNG-5899, maven cannot resolve dependency reduced poms in a multi 
project build. Therefore, flink-yarn-tests pulls in a wrong version of 
org.apache.httpcomponents.httpclient which does not work with Hadoop's 
ServletUtils together. As a solution we have to move the dependency management 
for the httpclient and httpcore version into the parent pom.xml.
    
    Another problem is the version of these libraries which has been recently 
bumped. In 4.4, httpclient changed its behaviour such that 
URLEncodedUtils#parse(String, Charset) now throws a NPE if the first parameter 
is null. In 4.2.6, an empty list was returned instead. Due to this 
incompatibility, we reverted the change and set the version to its previous 
value.


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

    $ git pull https://github.com/tillrohrmann/flink fixYarnSessionTest

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

    https://github.com/apache/flink/pull/4120.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 #4120
    
----
commit 37d5577cd12454ee3b5aa39206989bb89faf0cf8
Author: Till Rohrmann <[email protected]>
Date:   2017-06-13T21:26:10Z

    [FLINK-6836] [tests] Fix YARNSessionCapacitySchedulerITCase to work with 
Hadoop 2.6.5, 2.7.3 and 2.8.0
    
    Due to MNG-5899, maven cannot resolve dependency reduced poms in a multi 
project build. Therefore,
    flink-yarn-tests pulls in a wrong version of 
org.apache.httpcomponents.httpclient which does not work
    with Hadoop's ServletUtils together. As a solution we have to move the 
dependency management for the
    httpclient and httpcore version into the parent pom.xml.
    
    Another problem is the version of these libraries which has been recently 
bumped. In 4.4, httpclient
    changed its behaviour such that URLEncodedUtils#parse(String, Charset) now 
throws a NPE if the first
    parameter is null. In 4.2.6, an empty list was returned instead. Due to 
this incompatibility, we reverted
    the change and set the version to its previous value.

----


> Failing YARNSessionCapacitySchedulerITCase.testTaskManagerFailure
> -----------------------------------------------------------------
>
>                 Key: FLINK-6836
>                 URL: https://issues.apache.org/jira/browse/FLINK-6836
>             Project: Flink
>          Issue Type: Bug
>          Components: Tests, YARN
>    Affects Versions: 1.4.0
>            Reporter: Till Rohrmann
>            Assignee: Till Rohrmann
>            Priority: Critical
>              Labels: test-stability
>
> The master is currently unstable. The 
> {{YARNSessionCapacitySchedulerITCase.testTaskManagerFailure}} fails with 
> Hadoop version {{2.6.5}}, {{2.7.3}} and {{2.8.0}}.
> See this build [1] for example.
> [1] https://travis-ci.org/apache/flink/builds/238720589



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to