New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DnsResolverUtil "Cannot get DNS TTL settings from sun.net.InetAddressCachePolicy class" in Java 17 #15349
Labels
type/bug
The PR fixed a bug or issue reported a bug
Comments
I only know to add vm options |
3 tasks
@lhotari @Technoboy- Have you started the work locally? If not, I would like to take it over. |
2 tasks
michaeljmarshall
pushed a commit
that referenced
this issue
Jun 9, 2022
Fixes #15349 ### Motivation When using the JDK17, pulsar-client throws exception `module java.base does not export sun.net to unnamed module`, it is good to fix it. ### Modifications Add `--add-opens java.base/sun.net=ALL-UNNAMED` to java option when using JDK17. ### Verifying this change - [x] Make sure that the change passes the CI checks. ### Documentation Check the box below or label this PR directly. Need to update docs? - [x] `doc-not-needed`
nicoloboschi
pushed a commit
to datastax/pulsar
that referenced
this issue
Jun 28, 2022
Fixes apache#15349 ### Motivation When using the JDK17, pulsar-client throws exception `module java.base does not export sun.net to unnamed module`, it is good to fix it. ### Modifications Add `--add-opens java.base/sun.net=ALL-UNNAMED` to java option when using JDK17. ### Verifying this change - [x] Make sure that the change passes the CI checks. ### Documentation Check the box below or label this PR directly. Need to update docs? - [x] `doc-not-needed` (cherry picked from commit 9d16b91)
nicoloboschi
pushed a commit
to datastax/pulsar
that referenced
this issue
Jun 28, 2022
Fixes apache#15349 ### Motivation When using the JDK17, pulsar-client throws exception `module java.base does not export sun.net to unnamed module`, it is good to fix it. ### Modifications Add `--add-opens java.base/sun.net=ALL-UNNAMED` to java option when using JDK17. ### Verifying this change - [x] Make sure that the change passes the CI checks. ### Documentation Check the box below or label this PR directly. Need to update docs? - [x] `doc-not-needed` (cherry picked from commit 9d16b91)
Merged
4 tasks
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
DnsResolverUtil fails to get existing DNS TTL settings. This happens in Java 17. Error message:
To Reproduce
Use Pulsar Java Client in Java 17
Expected behavior
Pulsar Java Client should be able to detect DNS TTL settings used in Java and apply them to Netty's DnsNameResolverBuilder.
Additional context
#15219
The text was updated successfully, but these errors were encountered: