[ 
https://issues.apache.org/jira/browse/FLINK-10943?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul Lin updated FLINK-10943:
-----------------------------
    Description: 
Hadoop-common of 2.6 + version includes curator dependencies, which would have 
conflicts with the curator used by Flink runtime and cause test failures (the 
attachment is the surefire report). 

The curator dependencies tree of flink runtime is as below:

```

flink-shaded-hadoop2 -> hadoop-common -> curator-client & curator-recipes

flink-shaded-curator -> curator-recipes -> curator-framework -> curator-client

```

According to the dependency mechanism, maven would pick the curator-client in 
flink-shaded-hadoop2, and curator-framework and curator-recipes from 
flink-shaded-curator.

To fix the problem I think we can simply exclude curator-client from 
flink-shaded-hadoop2 dependency in flink-runtime.

I'd like to fix this, please let me know what you think. Thanks!

[^org.apache.flink.runtime.zookeeper.ZooKeeperStateHandleStoreTest.txt]

  was:
Hadoop-common of 2.6 + version includes curator dependencies, which would have 
conflicts with the curator used by Flink runtime and cause test failures (the 
attachment is the surefire report). 

Note that the curator-recipes dependency introduced in hadoop-common (of 
flink-shaded-hadoop2) is omitted because the same dependency that exists in the 
flink-shaded-curator module has a shorter path to the dependency root, but the 
curator-client dependencies in these two modules have the same length of path, 
just as below:

```

flink-shaded-hadoop2 -> hadoop-common -> curator-client & curator-recipes

flink-shaded-curator -> curator-recipes -> curator-client

```

So maven would pick the first curator-client, the one in flink-shaded-hadoop2.

To fix this problem I think we can simply exclude curator-client from 
flink-shaded-hadoop2 dependency in flink-runtime.

I'd like to fix this problem, please let me know what you think. Thanks!

[^org.apache.flink.runtime.zookeeper.ZooKeeperStateHandleStoreTest.txt]


> Flink runtime test failed caused by curator dependency conflicts
> ----------------------------------------------------------------
>
>                 Key: FLINK-10943
>                 URL: https://issues.apache.org/jira/browse/FLINK-10943
>             Project: Flink
>          Issue Type: Bug
>          Components: Build System, Tests
>    Affects Versions: 1.5.5, 1.6.2
>            Reporter: Paul Lin
>            Priority: Minor
>         Attachments: 
> org.apache.flink.runtime.zookeeper.ZooKeeperStateHandleStoreTest.txt
>
>
> Hadoop-common of 2.6 + version includes curator dependencies, which would 
> have conflicts with the curator used by Flink runtime and cause test failures 
> (the attachment is the surefire report). 
> The curator dependencies tree of flink runtime is as below:
> ```
> flink-shaded-hadoop2 -> hadoop-common -> curator-client & curator-recipes
> flink-shaded-curator -> curator-recipes -> curator-framework -> curator-client
> ```
> According to the dependency mechanism, maven would pick the curator-client in 
> flink-shaded-hadoop2, and curator-framework and curator-recipes from 
> flink-shaded-curator.
> To fix the problem I think we can simply exclude curator-client from 
> flink-shaded-hadoop2 dependency in flink-runtime.
> I'd like to fix this, please let me know what you think. Thanks!
> [^org.apache.flink.runtime.zookeeper.ZooKeeperStateHandleStoreTest.txt]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to