You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "jianfengqs (via GitHub)" <gi...@apache.org> on 2025/11/18 14:51:11 UTC

[PR] fix add netty-resolver-dns-native-macos dependency to avoid DNS resolution failure on macOS [skywalking-java]

jianfengqs opened a new pull request, #781:
URL: https://github.com/apache/skywalking-java/pull/781

   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.
   <img width="3540" height="1050" alt="微信图片_20251118224744_59223_147" src="https://github.com/user-attachments/assets/ec1151c9-f75f-4672-ae46-57783b89a467" />
   
   
   
   
   - [ ] Update the [`CHANGES` log](https://github.com/apache/skywalking-java/blob/main/CHANGES.md).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix add netty-resolver-dns-native-macos dependency to avoid DNS resolution failure on macOS [skywalking-java]

Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on PR #781:
URL: https://github.com/apache/skywalking-java/pull/781#issuecomment-3548098594

   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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix add netty-resolver-dns-native-macos dependency to avoid DNS resolution failure on macOS [skywalking-java]

Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng closed pull request #781: fix add netty-resolver-dns-native-macos dependency to avoid DNS resolution failure on macOS
URL: https://github.com/apache/skywalking-java/pull/781


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix add netty-resolver-dns-native-macos dependency to avoid DNS resolution failure on macOS [skywalking-java]

Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on code in PR #781:
URL: https://github.com/apache/skywalking-java/pull/781#discussion_r2538584142


##########
test/plugin/scenarios/gateway-4.1.2.x-scenario/gateway-projectA-scenario/pom.xml:
##########
@@ -34,6 +34,12 @@
             <artifactId>spring-cloud-starter-gateway</artifactId>
             <version>${test.framework.version}</version>
         </dependency>
+        <dependency>
+            <groupId>io.netty</groupId>
+            <artifactId>netty-resolver-dns-native-macos</artifactId>
+            <classifier>osx-aarch_64</classifier>
+            <version>4.1.114.Final</version>
+        </dependency>

Review Comment:
   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.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org