Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-16600

StagingTestBase uses methods not available in Mockito 1.8.5 in branch-3.1

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0, 3.1.1, 3.1.2
    • Fix Version/s: 3.1.4
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      details see HADOOP-15398
      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

      as follow code:

      InitiateMultipartUploadRequest req = invocation.getArgumentAt(
                      0, InitiateMultipartUploadRequest.class);
      

        Attachments

        1. HADOOP-16600-branch-3.1-v1.patch
          5 kB
          Duo Zhang
        2. HADOOP-16600.branch-3.1.v1.patch
          1 kB
          Lisheng Sun

          Issue Links

            Activity

              People

              • Assignee:
                zhangduo Duo Zhang
                Reporter:
                leosun08 Lisheng Sun
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: