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

Alexey Serbin commented on KUDU-3677:
-------------------------------------

Thanks a lot for the bug report!

It's quite surprise to have 'com.stumbleupon.async' being published as 
'optional' dependency, given the internal RPC processing in kudu-client based 
upon the library's functionality.

Let's see what we can do: most likely, it will be necessary to have 1.18.1 
release to address the issue.  I've just briefly discussed this issue offline 
with Abhishek Chennaka who's the release manager for Kudu 1.18.0 release.  The 
work is in progress to address this ASAP.

> Java kudu-client incorrectly declares com.stumbleupon:async as optional
> -----------------------------------------------------------------------
>
>                 Key: KUDU-3677
>                 URL: https://issues.apache.org/jira/browse/KUDU-3677
>             Project: Kudu
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.18
>            Reporter: James Netherton
>            Priority: Blocker
>
> There was a change in the Java kudu-client pom.xml between the 1.17.1 and 
> 1.18.0 with regards to how dependency com.stumbleupon:async is declared.
> *1.17.1*
> {code:java}
> <dependency>
>   <groupId>com.stumbleupon</groupId>
>   <artifactId>async</artifactId>
>   <version>1.4.1</version>
>   <scope>compile</scope>
>   <exclusions>
>     <exclusion>
>       <artifactId>slf4j-api</artifactId>
>       <groupId>org.slf4j</groupId>
>     </exclusion>
>   </exclusions>
> </dependency>
> {code}
> *1.18.0*
> {code:java}
> <dependency>
>   <groupId>com.stumbleupon</groupId>
>   <artifactId>async</artifactId>
>   <version>1.4.1</version>
>   <scope>compile</scope>
>   <exclusions>
>     <exclusion>
>       <groupId>org.slf4j</groupId>
>       <artifactId>slf4j-api</artifactId>
>     </exclusion>
>   </exclusions>
>   <optional>true</optional>
> </dependency>
> {code}
> Note the addition of <optional> in 1.18.0.
> Looking at the code from KuduClient and AsyncKuduClient, there are various 
> references to Deferred & Callback types. If you try to invoke methods that 
> use those types, then you'll get ClassNotFoundException. Unless you add the 
> missing com.stumbleupon:async dependency to the classpath.
> Can the previous non-optional dependency declaration be restored for future 
> releases?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to