[ https://issues.apache.org/jira/browse/HDFS-13472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16442734#comment-16442734 ]
Jason Lowe commented on HDFS-13472: ----------------------------------- I am unable to reproduce the compilation error in trunk. Given StagingTestBase has not been modified since November, it looks like many others have been unable to reproduce the error as well for some time. How are you building Hadoop to reproduce this error (i.e.: what does the command-line look like)? bq. getArgumentAt(int, Class<UploadPartRequest>) method is available only from version 2.0.0-beta getArgumentAt is available in 1.10.19. https://static.javadoc.io/org.mockito/mockito-core/1.10.19/org/mockito/invocation/InvocationOnMock.html The reason this is working for me is because mockito-core 1.10.19 is being pulled in by the DynamoDBLocal dependency, and that is appearing in the classpath before the mockito-all 1.8.5 dependency (as reported by mvn dependency:build-classpath). I agree that the version of mockito-all being requested by Hadoop is wrong. It's trying to call a method that isn't available in 1.8.5. I think we should upgrade the mockito dependency to at least 1.10.19. > Compilation error in trunk in hadoop-aws > ----------------------------------------- > > Key: HDFS-13472 > URL: https://issues.apache.org/jira/browse/HDFS-13472 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: Mohammad Arshad > Priority: Major > > *Problem:* hadoop trunk compilation is failing > *Root Cause:* > compilation error is coming from > {{org.apache.hadoop.fs.s3a.commit.staging.StagingTestBase}}. Compilation > error is "The method getArgumentAt(int, Class<UploadPartRequest>) is > undefined for the type InvocationOnMock". > StagingTestBase is using getArgumentAt(int, Class<UploadPartRequest>) method > which is not available in mockito-all 1.8.5 version. getArgumentAt(int, > Class<UploadPartRequest>) method is available only from version 2.0.0-beta > *Expectations:* > Either mockito-all version to be upgraded or test case to be written only > with available functions in 1.8.5. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org