oceanbase / oceanbase/obkv-hbase-client-java
[Bug]: Incompatible with Java 11 and above: Unexpected version format: 11.0.22
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 21
- Forks
- 21
- Avg merge
- 20h 5m
- Merged PRs (30d)
- 2
Description
Describe the bug
Incompatible with Java 11 and above.
Caused by: java.lang.ExceptionInInitializerError
at org.apache.hadoop.hbase.client.Mutation.<clinit>(Mutation.java:62)
at com.oceanbase.spark.HBaseRelation.$anonfun$flush$1(HBaseRelation.scala:85)
at com.oceanbase.spark.HBaseRelation.$anonfun$flush$1$adapted(HBaseRelation.scala:81)
at scala.collection.mutable.ResizableArray.foreach(ResizableArray.scala:62)
at scala.collection.mutable.ResizableArray.foreach$(ResizableArray.scala:55)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:49)
at com.oceanbase.spark.HBaseRelation.flush(HBaseRelation.scala:81)
at com.oceanbase.spark.HBaseRelation.$anonfun$insert$1(HBaseRelation.scala:73)
at com.oceanbase.spark.HBaseRelation.$anonfun$insert$1$adapted(HBaseRelation.scala:63)
at org.apache.spark.rdd.RDD.$anonfun$foreachPartition$2(RDD.scala:1020)
at org.apache.spark.rdd.RDD.$anonfun$foreachPartition$2$adapted(RDD.scala:1020)
at org.apache.spark.SparkContext.$anonfun$runJob$5(SparkContext.scala:2264)
at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:90)
at org.apache.spark.scheduler.Task.run(Task.scala:131)
at org.apache.spark.executor.Executor$TaskRunner.$anonfun$run$3(Executor.scala:506)
at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1491)
at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:509)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.RuntimeException: Unexpected version format: 11.0.22
at org.apache.hadoop.hbase.util.ClassSize.<clinit>(ClassSize.java:119)
... 20 more
Environment
- obkv-hbase-client-java-0.1.5
Fast reproduce steps
Use this library on Java 11 and above.
Expected behavior
No response
Actual behavior
No response
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with obkv-hbase-client-java 0.1.5 on Java 11 or above, then trace the initialization path through org.apache.hadoop.hbase.util.ClassSize and org.apache.hadoop.hbase.client.Mutation. Check the HBaseRelation.scala call sites at lines 81 and 85 for how the failure surfaces. Done means the client can run on Java 11+ without the unexpected version format exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100