Skip to content

Cannot backport the OAuth change to the branch-4.0 #5751

@openinx

Description

@openinx

When I backport the #5683 from master branch to branch-4.0 (PR: #5742) , I encountered this issue:

[info] compiling 35 Java sources to /home/runner/work/delta/delta/storage/target/classes ...
[error] /home/runner/work/delta/delta/storage/src/main/java/io/delta/storage/commit/uccommitcoordinator/UCTokenBasedRestClient.java:39:1: cannot access io.unitycatalog.client.auth.TokenProvider
[error]   bad class file: /home/runner/.cache/coursier/v1/https/repository.mulesoft.org/nexus/content/groups/public/io/unitycatalog/unitycatalog-client/0.3.1/unitycatalog-client-0.3.1.jar(io/unitycatalog/client/auth/TokenProvider.class)
[error]     class file has wrong version 55.0, should be 52.0
[error]     Please remove or make sure it appears in the correct subdirectory of the classpath.
[error] io.unitycatalog.client.auth.TokenProvider
[info] Checking 3 Java sources...
[info] Checking 65 Java sources...
[info] scalastyle using config /home/runner/work/delta/delta/scalastyle-config.xml
[info] scalastyle Processed 0 file(s)
[info] scalastyle Found 0 errors
[info] scalastyle Found 0 warnings
[info] scalastyle Found 0 infos
[info] scalastyle Finished in 0 ms
[success] created output: /home/runner/work/delta/delta/kernel/kernel-defaults/target
[error] (storage / Compile / compileIncremental) javac returned non-zero exit code
[error] Total time: 111 s (01:51), completed Dec 19, 2025 10:40:42 PM
Clearing Delta Kernel artifacts from ivy2 and mvn cache
Clearing Ivy caches in: []
Traceback (most recent call last):
  File "/home/runner/work/delta/delta/kernel/examples/run-kernel-examples.py", line 187, in <module>
    run_cmd(["build/sbt", "kernelGroup/publishM2", "storage/publishM2"], stream_output=True)
  File "/home/runner/work/delta/delta/kernel/examples/run-kernel-examples.py", line 127, in run_cmd
    raise Exception("Non-zero exitcode: %s" % (exit_code))
Exception: Non-zero exitcode: 1
Error: Process completed with exit code 1.

This is because our io.unitycatalog:unitycatalog-client:0.3.1 was compiled and built on JDK 11.

Our delta-io/delta master branch is exactly using the JDK11, that's why we can succesfully build and merge in delta's master branch.

But the delta-io/delta's branch-4.0 is still using the JDK8. while if the JDK8 encounter any dependency ( io.unitycatalog:unitycatalog-client:0.3.1 ) which built on JDK11, it cannot correctly recgonize the newer version of the bytecode.

That's why it report the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions