[
https://issues.apache.org/jira/browse/HADOOP-19243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17894081#comment-17894081
]
ASF GitHub Bot commented on HADOOP-19243:
-----------------------------------------
muskan1012 commented on PR #6968:
URL: https://github.com/apache/hadoop/pull/6968#issuecomment-2446021179
> The two tests which fail both use Mockito.
>
> TestCapacityOverTimePolicy
>
> ```
> junit.framework.AssertionFailedError
> at junit.framework.Assert.fail(Assert.java:55)
> at junit.framework.Assert.fail(Assert.java:64)
> at junit.framework.TestCase.fail(TestCase.java:230)
> at
org.apache.hadoop.yarn.server.resourcemanager.reservation.BaseSharingPolicyTest.runTest(BaseSharingPolicyTest.java:146)
> at
org.apache.hadoop.yarn.server.resourcemanager.reservation.TestCapacityOverTimePolicy.testAllocation(TestCapacityOverTimePolicy.java:136)
> ```
>
> and TestDFSAdmin
>
> ```
> Expected size:<3> but was:<1> in:
> <["Starting of reconfiguration task successful on 0 nodes, failed on 2
nodes."]>
> at
org.apache.hadoop.hdfs.tools.TestDFSAdmin.testAllDatanodesReconfig(TestDFSAdmin.java:1263)
> ```
>
> I think we should assume that these are related to the upgrade, unless it
can be shown otherwise. Please can you investigate. Thank you!
@steveloughran, These tests classes passed locally, indicating the issue
isn't related to my changes.
> Upgrade Mockito version to 4.11.0
> ---------------------------------
>
> Key: HADOOP-19243
> URL: https://issues.apache.org/jira/browse/HADOOP-19243
> Project: Hadoop Common
> Issue Type: Sub-task
> Reporter: Muskan Mishra
> Assignee: Muskan Mishra
> Priority: Major
> Labels: pull-request-available
>
> While Compiling test classes with JDK17, faced error related to Mockito:
> *Mockito cannot mock this class.*
> So to make it compatible with jdk17 we have to upgrade the version of
> mockito-core as well as mockito-inline.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]