[
https://issues.apache.org/jira/browse/PHOENIX-3829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15996248#comment-15996248
]
Sergey Soldatov commented on PHOENIX-3829:
------------------------------------------
Yep. The problem is that the failure happens on regular UT run. It uses
phoenix classes and jar dependencies during the run. Shading works only with
the final artifacts. The only way to use it in this case is to create a
separate artifact (possible located in a separate project) that will include
all dependencies and has them shaded and make the rest of the modules depends
on it (so no direct reference to the original libraries). But it's quite a
painful and expensive way with unpredictable result.
> Views/Index related tests are failing with NoSuchMethodError because of guava
> incompatibility in Phoenix-Calcite
> ----------------------------------------------------------------------------------------------------------------
>
> Key: PHOENIX-3829
> URL: https://issues.apache.org/jira/browse/PHOENIX-3829
> Project: Phoenix
> Issue Type: Sub-task
> Reporter: Rajeshbabu Chintaguntla
> Assignee: Rajeshbabu Chintaguntla
>
> {noformat}
> testChooseIndexFromCaseSensitiveHint2(org.apache.phoenix.compile.QueryOptimizerTest)
> Time elapsed: 0.398 sec <<< ERROR!
> java.lang.NoSuchMethodError:
> com.google.common.collect.Range.singleton(Ljava/lang/Comparable;)Lcom/google/common/collect/Range;
> at
> org.apache.phoenix.compile.QueryOptimizerTest.testChooseIndexFromCaseSensitiveHint2(QueryOptimizerTest.java:285)
> {noformat}
> [~sergey.soldatov] tried to check whether we can shade guava jars so that we
> don't get this kind of issues but was not able to do as of now and suggested
> to bump up the guava version. So changing the guava version to 14.0 as of now.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)