Fix PostCommit PortableJar Flink job - #39905
Open
Amar3tto wants to merge 1 commit into
Open
Conversation
Abacn
reviewed
Aug 27, 2026
| uses: ./.github/actions/setup-environment-action | ||
| with: | ||
| python-version: default | ||
| java-version: '17' |
Contributor
There was a problem hiding this comment.
I see
Exception in thread "main" java.util.ServiceConfigurationError: java.net.spi.InetAddressResolverProvider: Provider org.xbill.DNS.spi.DnsjavaInetAddressResolverProvider not found
at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:593)
due to CI bumped to Java21. This should be fixed by 'Multi-Release': 'true'. Does pin to Java17 still needed and why?
Collaborator
Author
There was a problem hiding this comment.
I tried 'Multi-Release': 'true' with Java21, the same error
Contributor
There was a problem hiding this comment.
Ideally not pin to Java17 as we still need to fix it later on. Tested in https://github.com/apache/beam/actions/runs/33089112555
c6f125a#diff-b54459154d5fd469e3aee54c9f7fe7017242b6c289f25d7a9433e2e7a15c07ebR354
excluding 'META-INF/services/java.net.spi.InetAddressResolverProvider' from the miniCluster jar it now works
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Successful run: https://github.com/apache/beam/actions/runs/33070208553/job/98510211265