[ https://issues.apache.org/jira/browse/HBASE-28944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17894138#comment-17894138 ]
Istvan Toth commented on HBASE-28944: ------------------------------------- We are running some tests with 3.1.1 now, that's clearly a bug, we only need to test for the versions which are listed in the docs as supported. (As you mentioned above) So feel free to fix the Hadoop versions mentioned above as part of the backport. > TestShadedHBaseTestingUtility fails with NCDFE: org/mockito/stubbing/Answer > --------------------------------------------------------------------------- > > Key: HBASE-28944 > URL: https://issues.apache.org/jira/browse/HBASE-28944 > Project: HBase > Issue Type: Bug > Components: test > Affects Versions: 2.5.10 > Reporter: Nihal Jain > Assignee: Nihal Jain > Priority: Major > > While working on https://github.com/apache/hbase/pull/6414 found we have > following pre-existing test failure: > {code:java} > [INFO] ------------------------------------------------------- > [INFO] T E S T S > [INFO] ------------------------------------------------------- > [INFO] Running org.apache.hbase.shaded.TestShadedHBaseTestingUtility > [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.006 > s <<< FAILURE! - in org.apache.hbase.shaded.TestShadedHBaseTestingUtility > [ERROR] org.apache.hbase.shaded.TestShadedHBaseTestingUtility Time elapsed: > 0.002 s <<< ERROR! > java.lang.NoClassDefFoundError: org/mockito/stubbing/Answer > at > org.apache.hadoop.hdfs.MiniDFSCluster.isNameNodeUp(MiniDFSCluster.java:2590) > at > org.apache.hadoop.hdfs.MiniDFSCluster.isClusterUp(MiniDFSCluster.java:2604) > at > org.apache.hadoop.hdfs.MiniDFSCluster.waitClusterUp(MiniDFSCluster.java:1479) > at > org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:958) > at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:849) > at > org.apache.hadoop.hbase.HBaseTestingUtility.startMiniDFSCluster(HBaseTestingUtility.java:689) > at > org.apache.hadoop.hbase.HBaseTestingUtility.startMiniDFSCluster(HBaseTestingUtility.java:669) > at > org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:1141) > at > org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:1116) > at > org.apache.hbase.shaded.TestShadedHBaseTestingUtility.setUp(TestShadedHBaseTestingUtility.java:46) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.base/java.lang.reflect.Method.invoke(Method.java:566) > at > org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) > at > org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) > at > org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) > at > org.junit.internal.runners.statements.RunBefores.invokeMethod(RunBefores.java:33) > at > org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24) > at > org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) > at > org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:299) > at > org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:293) > at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) > at java.base/java.lang.Thread.run(Thread.java:829) > Caused by: java.lang.ClassNotFoundException: org.mockito.stubbing.Answer > at > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) > at > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) > at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527) > ... 24 more > [INFO] > [INFO] Results: > [INFO] > [ERROR] Errors: > [ERROR] TestShadedHBaseTestingUtility.setUp:46 » NoClassDefFound > org/mockito/stubbing/Answer > [INFO] > [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0 > [INFO] > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 16.878 s (Wall Clock) > [INFO] Finished at: 2024-10-30T07:43:39Z > [INFO] > ------------------------------------------------------------------------ > {code} > Seems related to https://issues.apache.org/jira/browse/HDFS-15915 > -- This message was sent by Atlassian Jira (v8.20.10#820010)