Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
2.5.10
-
None
Description
While working on https://github.com/apache/hbase/pull/6414 found we have following pre-existing test failure:
[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] ------------------------------------------------------------------------
Seems related to https://issues.apache.org/jira/browse/HDFS-15915
Attachments
Issue Links
- is fixed by
-
HBASE-28947 Backport "HBASE-27598 Upgrade mockito to 4.x" to branch-2.5
- Resolved
- relates to
-
HBASE-28945 Update nightlies to run with HADOOP3_VERSION = 3.2.4
- Resolved
-
HBASE-28946 Update nightlies to run with HADOOP2_VERSION = 2.10.2
- Resolved
-
HDFS-15915 Race condition with async edits logging due to updating txId outside of the namesystem log
- Resolved
-
HBASE-27598 Upgrade mockito to 4.x
- Resolved
- links to