Skip to content

Conversation

@jianfengqs
Copy link

When running test cases on macOS, an error occurs with the following message:
"Unable to load io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider, fallback to system defaults. This may result in incorrect DNS resolutions on macOS. Check whether you have a dependency on 'io.netty:netty-resolver-dns-native-macos'."

This commit is intended to fix this error.
微信图片_20251118224744_59223_147

Comment on lines +37 to +42
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-resolver-dns-native-macos</artifactId>
<classifier>osx-aarch_64</classifier>
<version>4.1.114.Final</version>
</dependency>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our tests are not locked in macOS. I have doubts about this fix. This dependency is really required, should only be used in the package in MacOS, not always.

@wu-sheng
Copy link
Member

You could use -Dio.netty.resolver.dns.macos.native.disable=true to skip loading this. And the latest(newer) Netty has this fixed, don't need to add this dependency manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants