You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Josh Rosen (JIRA)" <ji...@apache.org> on 2015/06/29 20:16:04 UTC

[jira] [Created] (SPARK-8709) Exclude hadoop-client's mockito-all dependency to fix test compilation break for Hadoop 2

Josh Rosen created SPARK-8709:
---------------------------------

             Summary: Exclude hadoop-client's mockito-all dependency to fix test compilation break for Hadoop 2
                 Key: SPARK-8709
                 URL: https://issues.apache.org/jira/browse/SPARK-8709
             Project: Spark
          Issue Type: Bug
    Affects Versions: 1.5.0
            Reporter: Josh Rosen
            Assignee: Josh Rosen


{{build/sbt -Phadoop-1 -Dhadoop.version=2.0.0-mr1-cdh4.1.1 -Phive -Pkinesis-asl -Phive-thriftserver core/test:compile}} currently fails to compile:

{code}
[error] /Users/joshrosen/Documents/spark/core/src/test/java/org/apache/spark/shuffle/unsafe/UnsafeShuffleWriterSuite.java:117: error: cannot find symbol
[error]     when(shuffleMemoryManager.tryToAcquire(anyLong())).then(returnsFirstArg());
[error]                                                       ^
[error]   symbol:   method then(Answer<Object>)
[error]   location: interface OngoingStubbing<Long>
[error] /Users/joshrosen/Documents/spark/core/src/test/java/org/apache/spark/shuffle/unsafe/UnsafeShuffleWriterSuite.java:408: error: cannot find symbol
[error]       .then(returnsFirstArg()) // Allocate initial sort buffer
[error]       ^
[error]   symbol:   method then(Answer<Object>)
[error]   location: interface OngoingStubbing<Long>
[error] /Users/joshrosen/Documents/spark/core/src/test/java/org/apache/spark/shuffle/unsafe/UnsafeShuffleWriterSuite.java:435: error: cannot find symbol
[error]       .then(returnsFirstArg()) // Allocate initial sort buffer
[error]       ^
[error]   symbol:   method then(Answer<Object>)
[error]   location: interface OngoingStubbing<Long>
[error] 3 errors
[error] (core/test:compile) javac returned nonzero exit code
[error] Total time: 60 s, completed Jun 29, 2015 11:03:13 AM
{code}

This is because {{hadoop-client}} pulls in a dependency on {{mockito-all}}, but I recently changed Spark to depend on {{mockito-core}} instead, which caused Hadoop's earlier Mockito version to take precedence over our newer version. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org